Struct mavlink::uavionix::TUNNEL_DATA
source · pub struct TUNNEL_DATA {
pub payload_type: MavTunnelPayloadType,
pub target_system: u8,
pub target_component: u8,
pub payload_length: u8,
pub payload: [u8; 128],
}
Expand description
id: 385 Message for transporting “arbitrary” variable-length data from one component to another (broadcast is not forbidden, but discouraged). The encoding of the data is usually extension specific, i.e. determined by the source, and is usually not documented as part of the MAVLink specification..
Fields§
§payload_type: MavTunnelPayloadType
A code that identifies the content of the payload (0 for unknown, which is the default). If this code is less than 32768, it is a ‘registered’ payload type and the corresponding code should be added to the MAV_TUNNEL_PAYLOAD_TYPE enum. Software creators can register blocks of types as needed. Codes greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase..
target_system: u8
System ID (can be 0 for broadcast, but this is discouraged).
target_component: u8
Component ID (can be 0 for broadcast, but this is discouraged).
payload_length: u8
Length of the data transported in payload.
payload: [u8; 128]
Variable length payload. The payload length is defined by payload_length. The entire content of this block is opaque unless you understand the encoding specified by payload_type..
Implementations§
source§impl TUNNEL_DATA
impl TUNNEL_DATA
pub const ENCODED_LEN: usize = 133usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for TUNNEL_DATA
impl Clone for TUNNEL_DATA
source§fn clone(&self) -> TUNNEL_DATA
fn clone(&self) -> TUNNEL_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TUNNEL_DATA
impl Debug for TUNNEL_DATA
source§impl Default for TUNNEL_DATA
impl Default for TUNNEL_DATA
source§impl<'de> Deserialize<'de> for TUNNEL_DATA
impl<'de> Deserialize<'de> for TUNNEL_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 TUNNEL_DATA
impl MessageData for TUNNEL_DATA
type Message = MavMessage
const ID: u32 = 385u32
const NAME: &'static str = "TUNNEL"
const EXTRA_CRC: u8 = 147u8
const ENCODED_LEN: usize = 133usize
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for TUNNEL_DATA
impl PartialEq for TUNNEL_DATA
source§fn eq(&self, other: &TUNNEL_DATA) -> bool
fn eq(&self, other: &TUNNEL_DATA) -> bool
self
and other
values to be equal, and is used
by ==
.