Struct mavlink::common::OPEN_DRONE_ID_MESSAGE_PACK_DATA
source · pub struct OPEN_DRONE_ID_MESSAGE_PACK_DATA {
pub target_system: u8,
pub target_component: u8,
pub id_or_mac: [u8; 20],
pub single_message_size: u8,
pub msg_pack_size: u8,
pub messages: [u8; 225],
}
common
only.Expand description
id: 12915 An OpenDroneID message pack is a container for multiple encoded OpenDroneID messages (i.e. not in the format given for the above message descriptions but after encoding into the compressed OpenDroneID byte format). Used e.g. when transmitting on Bluetooth 5.0 Long Range/Extended Advertising or on WiFi Neighbor Aware Networking or on WiFi Beacon..
Fields§
§target_system: u8
System ID (0 for broadcast)..
target_component: u8
Component ID (0 for broadcast)..
id_or_mac: [u8; 20]
Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html..
single_message_size: u8
This field must currently always be equal to 25 (bytes), since all encoded OpenDroneID messages are specified to have this length..
msg_pack_size: u8
Number of encoded messages in the pack (not the number of bytes). Allowed range is 1 - 9..
messages: [u8; 225]
Concatenation of encoded OpenDroneID messages. Shall be filled with nulls in the unused portion of the field..
Implementations§
source§impl OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl OPEN_DRONE_ID_MESSAGE_PACK_DATA
pub const ENCODED_LEN: usize = 249usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl Clone for OPEN_DRONE_ID_MESSAGE_PACK_DATA
source§fn clone(&self) -> OPEN_DRONE_ID_MESSAGE_PACK_DATA
fn clone(&self) -> OPEN_DRONE_ID_MESSAGE_PACK_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl<'de> Deserialize<'de> for OPEN_DRONE_ID_MESSAGE_PACK_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 OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl MessageData for OPEN_DRONE_ID_MESSAGE_PACK_DATA
const ID: u32 = 12_915u32
const NAME: &'static str = "OPEN_DRONE_ID_MESSAGE_PACK"
const EXTRA_CRC: u8 = 94u8
const ENCODED_LEN: usize = 249usize
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 OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl PartialEq for OPEN_DRONE_ID_MESSAGE_PACK_DATA
source§fn eq(&self, other: &OPEN_DRONE_ID_MESSAGE_PACK_DATA) -> bool
fn eq(&self, other: &OPEN_DRONE_ID_MESSAGE_PACK_DATA) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for OPEN_DRONE_ID_MESSAGE_PACK_DATA
Auto Trait Implementations§
impl Freeze for OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl RefUnwindSafe for OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl Send for OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl Sync for OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl Unpin for OPEN_DRONE_ID_MESSAGE_PACK_DATA
impl UnwindSafe for OPEN_DRONE_ID_MESSAGE_PACK_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
)