Struct Coefficients

Source
pub struct Coefficients {
Show 18 fields pub gyr_ts: Float, pub acc_ts: Float, pub mag_ts: Float, pub acc_lp_b: [f64; 3], pub acc_lp_a: [f64; 2], pub k_mag: Float, pub bias_p0: Float, pub bias_v: Float, pub bias_motion_w: Float, pub bias_vertical_w: Float, pub bias_rest_w: Float, pub rest_gyr_lp_b: [f64; 3], pub rest_gyr_lp_a: [f64; 2], pub rest_acc_lp_b: [f64; 3], pub rest_acc_lp_a: [f64; 2], pub k_mag_ref: Float, pub mag_norm_dip_lp_b: [f64; 3], pub mag_norm_dip_lp_a: [f64; 2],
}
Expand description

Struct containing coefficients used by the VQF class.

Coefficients are values that depend on the parameters and the sampling times, but do not change during update steps. They are calculated in VQF::new().

Fields§

§gyr_ts: Float

Sampling time of the gyroscope measurements (in seconds).

§acc_ts: Float

Sampling time of the accelerometer measurements (in seconds).

§mag_ts: Float

Sampling time of the magnetometer measurements (in seconds).

§acc_lp_b: [f64; 3]

Numerator coefficients of the acceleration low-pass filter.

The array contains $\begin{bmatrix}b_0 & b_1 & b_2\end{bmatrix}$.

§acc_lp_a: [f64; 2]

Denominator coefficients of the acceleration low-pass filter.

The array contains $\begin{bmatrix}a_1 & a_2\end{bmatrix}$ and $a_0=1$.

§k_mag: Float

Gain of the first-order filter used for heading correction.

§bias_p0: Float

Variance of the initial gyroscope bias estimate.

§bias_v: Float

System noise variance used in gyroscope bias estimation.

§bias_motion_w: Float

Measurement noise variance for the motion gyroscope bias estimation update.

§bias_vertical_w: Float

Measurement noise variance for the motion gyroscope bias estimation update in vertical direction.

§bias_rest_w: Float

Measurement noise variance for the rest gyroscope bias estimation update.

§rest_gyr_lp_b: [f64; 3]

Numerator coefficients of the gyroscope measurement low-pass filter for rest detection.

§rest_gyr_lp_a: [f64; 2]

Denominator coefficients of the gyroscope measurement low-pass filter for rest detection.

§rest_acc_lp_b: [f64; 3]

Numerator coefficients of the accelerometer measurement low-pass filter for rest detection.

§rest_acc_lp_a: [f64; 2]

Denominator coefficients of the accelerometer measurement low-pass filter for rest detection.

§k_mag_ref: Float

Gain of the first-order filter used for to update the magnetic field reference and candidate.

§mag_norm_dip_lp_b: [f64; 3]

Numerator coefficients of the low-pass filter for the current magnetic norm and dip.

§mag_norm_dip_lp_a: [f64; 2]

Denominator coefficients of the low-pass filter for the current magnetic norm and dip.

Trait Implementations§

Source§

impl Clone for Coefficients

Source§

fn clone(&self) -> Coefficients

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Coefficients

Source§

fn default() -> Coefficients

Returns the “default value” for a type. Read more
Source§

impl Copy for Coefficients

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.