gmt_m1_ctrl_outer_actuators/
lib.rs

1//! # M1 outer segment actuators controller
2//!
3//! The control system converts forces and moments at the segment
4//! center of gravity into actuators forces in addition to any
5//! offset actuators forces
6//!
7//! This is imported from a Simulink model converted into C code.
8
9#![allow(non_upper_case_globals)]
10#![allow(non_camel_case_types)]
11#![allow(non_snake_case)]
12#![allow(improper_ctypes)]
13
14include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
15
16include!(concat!(env!("OUT_DIR"), "/controller.rs"));
17
18#[cfg(test)]
19mod tests {
20    use super::*;
21    #[test]
22    fn zero() {
23        let mut ctrl = OuterActuatorsController::new();
24        ctrl.inputs.LC_FxyzMxyz_CG[0] = 1f64;
25        ctrl.step();
26        dbg!(&ctrl.states);
27    }
28}