pub struct LoggingData {
pub target_system: u8,
pub target_component: u8,
pub sequence: u16,
pub length: u8,
pub first_message_offset: u8,
pub data: [u8; 249],
}Expand description
MAVLink LOGGING_DATA message.
The minimum supported MAVLink version is MAVLink 2.
§Description
A message containing logged data (see also MAV_CMD_LOGGING_START)
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
LoggingData (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§target_system: u8MAVLink field target_system.
system ID of the target
target_component: u8MAVLink field target_component.
component ID of the target
sequence: u16MAVLink field sequence.
sequence number (can wrap)
length: u8MAVLink field length.
data length
first_message_offset: u8MAVLink field first_message_offset.
offset into data where first message starts. This can be used for recovery, when a previous message got lost (set to UINT8_MAX if no start exists).
data: [u8; 249]MAVLink field data.
logged data
Implementations§
Source§impl LoggingData
impl LoggingData
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for LoggingData
impl Clone for LoggingData
Source§fn clone(&self) -> LoggingData
fn clone(&self) -> LoggingData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoggingData
impl Debug for LoggingData
Source§impl Default for LoggingData
impl Default for LoggingData
Source§impl<'de> Deserialize<'de> for LoggingData
impl<'de> Deserialize<'de> for LoggingData
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 From<LoggingData> for Common
impl From<LoggingData> for Common
Source§fn from(value: LoggingData) -> Self
fn from(value: LoggingData) -> Self
Source§impl IntoPayload for LoggingData
impl IntoPayload for LoggingData
Source§impl MessageSpec for LoggingData
impl MessageSpec for LoggingData
Source§impl MessageSpecStatic for LoggingData
impl MessageSpecStatic for LoggingData
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for LoggingData
impl NamedType for LoggingData
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for LoggingData
impl PartialEq for LoggingData
Source§impl Serialize for LoggingData
impl Serialize for LoggingData
Source§impl TryFrom<&Payload> for LoggingData
impl TryFrom<&Payload> for LoggingData
Source§impl Type for LoggingData
impl Type for LoggingData
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.