pub struct Constants {
pub valid: bool,
pub field: f32,
pub offset: [f32; 3],
pub mapping: [[f32; 3]; 3],
}Expand description
The magnetometer calibration constants.
Fields§
§valid: boolWhether a calibration exists (fitted or loaded). The values are the identity and 50 µT when it does not.
field: f32Field magnitude B, µT.
offset: [f32; 3]Hard-iron offset V, µT.
mapping: [[f32; 3]; 3]Inverse soft-iron matrix A, row-major.
Trait Implementations§
impl Copy for Constants
impl StructuralPartialEq for Constants
Auto Trait Implementations§
impl Freeze for Constants
impl RefUnwindSafe for Constants
impl Send for Constants
impl Sync for Constants
impl Unpin for Constants
impl UnsafeUnpin for Constants
impl UnwindSafe for Constants
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more