[][src]Struct dcmimu::DCMIMU

pub struct DCMIMU { /* fields omitted */ }

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]

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

impl Send for DCMIMU

impl Sync for DCMIMU

impl Unpin for DCMIMU

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.