[][src]Struct mavlink::ardupilotmega::MAG_CAL_REPORT_DATA

pub struct MAG_CAL_REPORT_DATA {
    pub fitness: f32,
    pub ofs_x: f32,
    pub ofs_y: f32,
    pub ofs_z: f32,
    pub diag_x: f32,
    pub diag_y: f32,
    pub diag_z: f32,
    pub offdiag_x: f32,
    pub offdiag_y: f32,
    pub offdiag_z: f32,
    pub compass_id: u8,
    pub cal_mask: u8,
    pub cal_status: MagCalStatus,
    pub autosaved: u8,
    pub orientation_confidence: f32,
    pub old_orientation: MavSensorOrientation,
    pub new_orientation: MavSensorOrientation,
    pub scale_factor: f32,
}

id: 192 Reports results of completed compass calibration. Sent until MAG_CAL_ACK received..

Fields

fitness: f32

RMS milligauss residuals..

ofs_x: f32

X offset..

ofs_y: f32

Y offset..

ofs_z: f32

Z offset..

diag_x: f32

X diagonal (matrix 11)..

diag_y: f32

Y diagonal (matrix 22)..

diag_z: f32

Z diagonal (matrix 33)..

offdiag_x: f32

X off-diagonal (matrix 12 and 21)..

offdiag_y: f32

Y off-diagonal (matrix 13 and 31)..

offdiag_z: f32

Z off-diagonal (matrix 32 and 23)..

compass_id: u8

Compass being calibrated..

cal_mask: u8

Bitmask of compasses being calibrated..

cal_status: MagCalStatus

Calibration Status..

autosaved: u8

0=requires a MAV_CMD_DO_ACCEPT_MAG_CAL, 1=saved to parameters..

orientation_confidence: f32

Confidence in orientation (higher is better)..

old_orientation: MavSensorOrientation

orientation before calibration..

new_orientation: MavSensorOrientation

orientation after calibration..

scale_factor: f32

field radius correction factor.

Implementations

impl MAG_CAL_REPORT_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for MAG_CAL_REPORT_DATA[src]

impl Debug for MAG_CAL_REPORT_DATA[src]

impl Default for MAG_CAL_REPORT_DATA[src]

impl<'de> Deserialize<'de> for MAG_CAL_REPORT_DATA[src]

impl PartialEq<MAG_CAL_REPORT_DATA> for MAG_CAL_REPORT_DATA[src]

impl Serialize for MAG_CAL_REPORT_DATA[src]

impl StructuralPartialEq for MAG_CAL_REPORT_DATA[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.