[][src]Struct mavlink::common::GPS_RTCM_DATA_DATA

pub struct GPS_RTCM_DATA_DATA {
    pub flags: u8,
    pub len: u8,
    pub data: Vec<u8>,
}

id: 233 RTCM message for injecting into the onboard GPS (used for DGPS).

Fields

flags: u8

LSB: 1 means message is fragmented, next 2 bits are the fragment ID, the remaining 5 bits are used for the sequence ID. Messages are only to be flushed to the GPS when the entire message has been reconstructed on the autopilot. The fragment ID specifies which order the fragments should be assembled into a buffer, while the sequence ID is used to detect a mismatch between different buffers. The buffer is considered fully reconstructed when either all 4 fragments are present, or all the fragments before the first fragment with a non full payload is received. This management is used to ensure that normal GPS operation doesn't corrupt RTCM data, and to recover from a unreliable transport delivery order..

len: u8

data length.

data: Vec<u8>

RTCM message (may be fragmented).

Implementations

impl GPS_RTCM_DATA_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for GPS_RTCM_DATA_DATA[src]

impl Debug for GPS_RTCM_DATA_DATA[src]

impl Default for GPS_RTCM_DATA_DATA[src]

impl<'de> Deserialize<'de> for GPS_RTCM_DATA_DATA[src]

impl PartialEq<GPS_RTCM_DATA_DATA> for GPS_RTCM_DATA_DATA[src]

impl Serialize for GPS_RTCM_DATA_DATA[src]

impl StructuralPartialEq for GPS_RTCM_DATA_DATA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.