[][src]Struct mavlink::common::HEARTBEAT_DATA

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,
}

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

impl HEARTBEAT_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 HEARTBEAT_DATA[src]

impl Debug for HEARTBEAT_DATA[src]

impl Default for HEARTBEAT_DATA[src]

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

impl PartialEq<HEARTBEAT_DATA> for HEARTBEAT_DATA[src]

impl Serialize for HEARTBEAT_DATA[src]

impl StructuralPartialEq for HEARTBEAT_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.