[−][src]Struct dcmimu::DCMIMU
Implementations
impl DCMIMU
[src]
pub fn new() -> Self
[src]
New
pub fn update(
&mut self,
gyro: (f32, f32, f32),
accel: (f32, f32, f32),
dt: f32
) -> (EulerAngles, GyroBiases)
[src]
&mut self,
gyro: (f32, f32, f32),
accel: (f32, f32, f32),
dt: f32
) -> (EulerAngles, GyroBiases)
Updates DCMIMU states with gyro (x, y, z), accel (x, y, z), and dt (seconds) and returns current estimations and current gyroscope biases({roll; yaw; pitch}, {gbx, gby, gbz}). Angles are in rad, biases are in rad/s.
pub fn all(&self) -> EulerAngles
[src]
Returns all angles (yaw, roll, pitch)
pub fn yaw(&self) -> f32
[src]
Returns current yaw estimation.
pub fn pitch(&self) -> f32
[src]
Returns current pitch estimation.
pub fn roll(&self) -> f32
[src]
Returns current roll estimation.
pub fn gyro_biases(&self) -> GyroBiases
[src]
Returns current value of gyro biases.
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,