1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use nalgebra::Vector3;

mod quad;
pub use quad::QuadMotorControl;

pub trait MotorControl {
    fn arm(&mut self);

    /// Output the control needed to command a torque (in Nm) and thrust acceleration (in m/s^2).
    fn motor_control(
        &mut self,
        torque: Vector3<f32>,
        acceleration: f32,
        moment_of_inertia: &Vector3<f32>,
    );
}