[−][src]Struct mavlink::common::HEARTBEAT_DATA
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]
version: MavlinkVersion,
_input: &[u8]
) -> Result<Self, ParserError>
pub fn ser(&self) -> Vec<u8>
[src]
Trait Implementations
impl Clone for HEARTBEAT_DATA
[src]
fn clone(&self) -> HEARTBEAT_DATA
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HEARTBEAT_DATA
[src]
impl Default for HEARTBEAT_DATA
[src]
fn default() -> HEARTBEAT_DATA
[src]
impl<'de> Deserialize<'de> for HEARTBEAT_DATA
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<HEARTBEAT_DATA> for HEARTBEAT_DATA
[src]
fn eq(&self, other: &HEARTBEAT_DATA) -> bool
[src]
fn ne(&self, other: &HEARTBEAT_DATA) -> bool
[src]
impl Serialize for HEARTBEAT_DATA
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for HEARTBEAT_DATA
[src]
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,