pub struct V2_EXTENSION_DATA {
pub message_type: u16,
pub target_network: u8,
pub target_system: u8,
pub target_component: u8,
pub payload: [u8; 249],
}
cubepilot
only.Expand description
id: 248 Message implementing parts of the V2 payload specs in V1 frames for transitional support..
Fields§
§message_type: u16
A code that identifies the software component that understands this message (analogous to USB device classes or mime type strings). If this code is less than 32768, it is considered a ‘registered’ protocol extension and the corresponding entry should be added to https://github.com/mavlink/mavlink/definition_files/extension_message_ids.xml. Software creators can register blocks of message IDs as needed (useful for GCS specific metadata, etc…). Message_types greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase..
target_network: u8
Network ID (0 for broadcast).
target_system: u8
System ID (0 for broadcast).
target_component: u8
Component ID (0 for broadcast).
payload: [u8; 249]
Variable length payload. The length must be encoded in the payload as part of the message_type protocol, e.g. by including the length as payload data, or by terminating the payload data with a non-zero marker. This is required in order to reconstruct zero-terminated payloads that are (or otherwise would be) trimmed by MAVLink 2 empty-byte truncation. The entire content of the payload block is opaque unless you understand the encoding message_type. The particular encoding used can be extension specific and might not always be documented as part of the MAVLink specification..
Implementations§
Source§impl V2_EXTENSION_DATA
impl V2_EXTENSION_DATA
pub const ENCODED_LEN: usize = 254usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for V2_EXTENSION_DATA
impl Clone for V2_EXTENSION_DATA
Source§fn clone(&self) -> V2_EXTENSION_DATA
fn clone(&self) -> V2_EXTENSION_DATA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more