Struct mavlink::common::HEARTBEAT_DATA
source · pub struct HEARTBEAT_DATA {
pub custom_mode: u32,
pub mavtype: MavType,
pub autopilot: MavAutopilot,
pub base_mode: MavModeFlag,
pub system_status: MavState,
pub mavlink_version: u8,
}
common
only.Expand description
id: 0 The heartbeat message shows that a system or component is present and responding. The type and autopilot fields (along with the message component id), allow the receiving system to treat further messages from this system appropriately (e.g. by laying out the user interface based on the autopilot). This microservice is documented at https://mavlink.io/en/services/heartbeat.html.
Fields§
§custom_mode: u32
A bitfield for use for autopilot-specific flags.
mavtype: MavType
Vehicle or component type. For a flight controller component the vehicle type (quadrotor, helicopter, etc.). For other components the component type (e.g. camera, gimbal, etc.). This should be used in preference to component id for identifying the component type..
autopilot: MavAutopilot
Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers..
base_mode: MavModeFlag
System mode bitmap..
system_status: MavState
System status flag..
mavlink_version: u8
MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version.
Implementations§
source§impl HEARTBEAT_DATA
impl HEARTBEAT_DATA
pub const ENCODED_LEN: usize = 9usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for HEARTBEAT_DATA
impl Clone for HEARTBEAT_DATA
source§fn clone(&self) -> HEARTBEAT_DATA
fn clone(&self) -> HEARTBEAT_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HEARTBEAT_DATA
impl Debug for HEARTBEAT_DATA
source§impl Default for HEARTBEAT_DATA
impl Default for HEARTBEAT_DATA
source§impl<'de> Deserialize<'de> for HEARTBEAT_DATA
impl<'de> Deserialize<'de> for HEARTBEAT_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>,
source§impl MessageData for HEARTBEAT_DATA
impl MessageData for HEARTBEAT_DATA
const ID: u32 = 0u32
const NAME: &'static str = "HEARTBEAT"
const EXTRA_CRC: u8 = 50u8
const ENCODED_LEN: usize = 9usize
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 HEARTBEAT_DATA
impl PartialEq for HEARTBEAT_DATA
source§impl Serialize for HEARTBEAT_DATA
impl Serialize for HEARTBEAT_DATA
impl StructuralPartialEq for HEARTBEAT_DATA
Auto Trait Implementations§
impl Freeze for HEARTBEAT_DATA
impl RefUnwindSafe for HEARTBEAT_DATA
impl Send for HEARTBEAT_DATA
impl Sync for HEARTBEAT_DATA
impl Unpin for HEARTBEAT_DATA
impl UnwindSafe for HEARTBEAT_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
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)
clone_to_uninit
)