[][src]Struct mpu9250_i2c::calibration::Calibration

pub struct Calibration {
    pub mag_offset: Vector<f32>,
    pub mag_scale: Vector<f32>,
    pub gyro_bias_offset: Vector<f32>,
    pub accel_offset: Vector<f32>,
    pub accel_scale_lo: Vector<f32>,
    pub accel_scale_hi: Vector<f32>,
}

Calibration struct for the mag (magnetometer/compass), acceleromter and gyroscope. Need to run the calibrate executable to obtain these values.

Fields

mag_offset: Vector<f32>

The mag offset/bias values

mag_scale: Vector<f32>

Scale the g value

gyro_bias_offset: Vector<f32>

The average value at rest

accel_offset: Vector<f32>

Offset

accel_scale_lo: Vector<f32>

Lower scale factor value

accel_scale_hi: Vector<f32>

Higher scale factor value

Implementations

impl Calibration[src]

pub fn copy(cal: &Self) -> Self[src]

Make a copy of the calibration

Trait Implementations

impl Default for Calibration[src]

fn default() -> Calibration[src]

The default calibration. This is like having no calibration in place.

Auto Trait Implementations

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.