Struct mavlink::ardupilotmega::MAG_CAL_PROGRESS_DATA
source · pub struct MAG_CAL_PROGRESS_DATA {
pub direction_x: f32,
pub direction_y: f32,
pub direction_z: f32,
pub compass_id: u8,
pub cal_mask: u8,
pub cal_status: MagCalStatus,
pub attempt: u8,
pub completion_pct: u8,
pub completion_mask: [u8; 10],
}
Available on crate feature
ardupilotmega
only.Expand description
id: 191 Reports progress of compass calibration..
Fields§
§direction_x: f32
Body frame direction vector for display..
direction_y: f32
Body frame direction vector for display..
direction_z: f32
Body frame direction vector for display..
compass_id: u8
Compass being calibrated..
cal_mask: u8
Bitmask of compasses being calibrated..
cal_status: MagCalStatus
Calibration Status..
attempt: u8
Attempt number..
completion_pct: u8
Completion percentage..
completion_mask: [u8; 10]
Bitmask of sphere sections (see http://en.wikipedia.org/wiki/Geodesic_grid)..
Implementations§
source§impl MAG_CAL_PROGRESS_DATA
impl MAG_CAL_PROGRESS_DATA
pub const ENCODED_LEN: usize = 27usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for MAG_CAL_PROGRESS_DATA
impl Clone for MAG_CAL_PROGRESS_DATA
source§fn clone(&self) -> MAG_CAL_PROGRESS_DATA
fn clone(&self) -> MAG_CAL_PROGRESS_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_PROGRESS_DATA
impl Debug for MAG_CAL_PROGRESS_DATA
source§impl Default for MAG_CAL_PROGRESS_DATA
impl Default for MAG_CAL_PROGRESS_DATA
source§impl<'de> Deserialize<'de> for MAG_CAL_PROGRESS_DATA
impl<'de> Deserialize<'de> for MAG_CAL_PROGRESS_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_PROGRESS_DATA
impl MessageData for MAG_CAL_PROGRESS_DATA
const ID: u32 = 191u32
const NAME: &'static str = "MAG_CAL_PROGRESS"
const EXTRA_CRC: u8 = 92u8
const ENCODED_LEN: usize = 27usize
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_PROGRESS_DATA
impl PartialEq for MAG_CAL_PROGRESS_DATA
source§impl Serialize for MAG_CAL_PROGRESS_DATA
impl Serialize for MAG_CAL_PROGRESS_DATA
impl StructuralPartialEq for MAG_CAL_PROGRESS_DATA
Auto Trait Implementations§
impl Freeze for MAG_CAL_PROGRESS_DATA
impl RefUnwindSafe for MAG_CAL_PROGRESS_DATA
impl Send for MAG_CAL_PROGRESS_DATA
impl Sync for MAG_CAL_PROGRESS_DATA
impl Unpin for MAG_CAL_PROGRESS_DATA
impl UnwindSafe for MAG_CAL_PROGRESS_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
)