pub struct CompassCalibration {
pub present: bool,
pub epoch: i64,
pub warning: String,
pub hard_iron: [f64; 3],
pub soft_iron: [f64; 9],
pub accel_offset: [f64; 3],
}Expand description
The newest compass calibration in the log.
Fields§
§present: boolWhether a usable calibration was read.
epoch: i64Its Calibration row’s epoch, seconds.
warning: StringWhy it is absent or suspect; empty when there is nothing to say.
hard_iron: [f64; 3]Hard-iron offset, µT.
soft_iron: [f64; 9]Soft-iron matrix, row-major.
accel_offset: [f64; 3]Accelerometer zero-g offset, mg.
Trait Implementations§
Source§impl Clone for CompassCalibration
impl Clone for CompassCalibration
Source§fn clone(&self) -> CompassCalibration
fn clone(&self) -> CompassCalibration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompassCalibration
impl Debug for CompassCalibration
Source§impl<'de> Deserialize<'de> for CompassCalibration
impl<'de> Deserialize<'de> for CompassCalibration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompassCalibration
impl PartialEq for CompassCalibration
impl StructuralPartialEq for CompassCalibration
Auto Trait Implementations§
impl Freeze for CompassCalibration
impl RefUnwindSafe for CompassCalibration
impl Send for CompassCalibration
impl Sync for CompassCalibration
impl Unpin for CompassCalibration
impl UnsafeUnpin for CompassCalibration
impl UnwindSafe for CompassCalibration
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