Skip to main content

Quality

Struct Quality 

Source
pub struct Quality {
Show 21 fields pub patches_seen: i32, pub mag_patches: i32, pub coverage: f32, pub patch_min: i32, pub patch_max: i32, pub isotropy: f32, pub attitude_diversity: f32, pub attitude_cells: i32, pub attitude_patches: i32, pub field: f32, pub fit_error: f32, pub residual_spread: f32, pub residual_p95: f32, pub residual_hard_iron: f32, pub dip_mean_deg: f32, pub dip_spread_deg: f32, pub dip_p95_deg: f32, pub dip_samples: i32, pub accel_samples: i32, pub have_accel_metrics: bool, pub samples: i32,
}
Expand description

MagQuality’s figures; see magquality_core.h for what each means.

Fields§

§patches_seen: i32

Occupied magnetometer patches.

§mag_patches: i32

Patches available.

§coverage: f32

patches_seen / mag_patches.

§patch_min: i32

Samples in the emptiest occupied patch.

§patch_max: i32

Samples in the fullest patch.

§isotropy: f32

Direction evenness, 0 to 1.

§attitude_diversity: f32

Gravity patches per occupied magnetometer patch.

§attitude_cells: i32

Distinct (magnetometer, gravity) cells.

§attitude_patches: i32

Magnetometer patches with a gravity observation.

§field: f32

Median calibrated magnitude, µT.

§fit_error: f32

RMS residual, percent of the field.

§residual_spread: f32

Robust residual spread, percent of the field.

§residual_p95: f32

95th percentile residual, percent of the field.

§residual_hard_iron: f32

Hard iron the fit left, µT.

§dip_mean_deg: f32

Median inclination, degrees.

§dip_spread_deg: f32

Robust inclination spread, degrees.

§dip_p95_deg: f32

95th percentile inclination deviation, degrees.

§dip_samples: i32

Samples that passed the accelerometer gate.

§accel_samples: i32

Samples offered with an accelerometer.

§have_accel_metrics: bool

Whether the dip figures exist.

§samples: i32

Samples accepted.

Trait Implementations§

Source§

impl Clone for Quality

Source§

fn clone(&self) -> Quality

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Quality

Source§

impl Debug for Quality

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Quality

Source§

fn default() -> Quality

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

impl PartialEq for Quality

Source§

fn eq(&self, other: &Quality) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Quality

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.