Struct mavlink::matrixpilot::MAG_CAL_REPORT_DATA
source · pub struct MAG_CAL_REPORT_DATA {Show 18 fields
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,
}
Available on crate feature
matrixpilot
only.Expand description
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§
source§impl MAG_CAL_REPORT_DATA
impl MAG_CAL_REPORT_DATA
pub const ENCODED_LEN: usize = 54usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for MAG_CAL_REPORT_DATA
impl Clone for MAG_CAL_REPORT_DATA
source§fn clone(&self) -> MAG_CAL_REPORT_DATA
fn clone(&self) -> MAG_CAL_REPORT_DATA
Returns a copy of the value. Read more
1.0.0 · 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 MAG_CAL_REPORT_DATA
impl Debug for MAG_CAL_REPORT_DATA
source§impl Default for MAG_CAL_REPORT_DATA
impl Default for MAG_CAL_REPORT_DATA
source§impl<'de> Deserialize<'de> for MAG_CAL_REPORT_DATA
impl<'de> Deserialize<'de> for MAG_CAL_REPORT_DATA
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 MessageData for MAG_CAL_REPORT_DATA
impl MessageData for MAG_CAL_REPORT_DATA
const ID: u32 = 192u32
const NAME: &'static str = "MAG_CAL_REPORT"
const EXTRA_CRC: u8 = 36u8
const ENCODED_LEN: usize = 54usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for MAG_CAL_REPORT_DATA
impl PartialEq for MAG_CAL_REPORT_DATA
source§impl Serialize for MAG_CAL_REPORT_DATA
impl Serialize for MAG_CAL_REPORT_DATA
impl StructuralPartialEq for MAG_CAL_REPORT_DATA
Auto Trait Implementations§
impl Freeze for MAG_CAL_REPORT_DATA
impl RefUnwindSafe for MAG_CAL_REPORT_DATA
impl Send for MAG_CAL_REPORT_DATA
impl Sync for MAG_CAL_REPORT_DATA
impl Unpin for MAG_CAL_REPORT_DATA
impl UnwindSafe for MAG_CAL_REPORT_DATA
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)