Struct dcmimu::DCMIMU [−][src]
pub struct DCMIMU { /* fields omitted */ }
Methods
impl DCMIMU
[src]
impl DCMIMU
pub fn new() -> Self
[src]
pub fn new() -> Self
New
pub fn update(
&mut self,
gyro: (f32, f32, f32),
accel: (f32, f32, f32),
dt: f32
) -> VTL
[src]
pub fn update(
&mut self,
gyro: (f32, f32, f32),
accel: (f32, f32, f32),
dt: f32
) -> VTL
Updates DCMIMU states with gyro (x, y, z), accel (x, y, z), and dt (seconds) and returns current estimations ({roll; yaw; pitch}).
pub fn all(&self) -> VTL
[src]
pub fn all(&self) -> VTL
Returns all moments (yaw, roll, pitch)
pub fn yaw(&self) -> f32
[src]
pub fn yaw(&self) -> f32
Yaw
pub fn pitch(&self) -> f32
[src]
pub fn pitch(&self) -> f32
Pitch
pub fn roll(&self) -> f32
[src]
pub fn roll(&self) -> f32
Roll