pub struct Heartbeat {
pub mav_type: u8,
pub autopilot: u8,
pub base_mode: u8,
pub custom_mode: u32,
pub system_status: u8,
pub mavlink_version: u8,
}Expand description
A decoded HEARTBEAT message.
Fields§
§mav_type: u8Vehicle/component type (MAV_TYPE).
Named mav_type here (not type, a reserved word in Rust) to match
the wire field’s actual name as closely as Rust allows.
autopilot: u8Autopilot type/class (MAV_AUTOPILOT).
base_mode: u8System mode bitmask (MAV_MODE_FLAG).
custom_mode: u32A navigation mode value private to the autopilot.
system_status: u8System status (MAV_STATE).
mavlink_version: u8MAVLink version this node speaks.
Trait Implementations§
impl Copy for Heartbeat
impl Eq for Heartbeat
impl StructuralPartialEq for Heartbeat
Auto Trait Implementations§
impl Freeze for Heartbeat
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnsafeUnpin for Heartbeat
impl UnwindSafe for Heartbeat
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