Struct mavlink::common::GPS_RTCM_DATA_DATA
source · pub struct GPS_RTCM_DATA_DATA {
pub flags: u8,
pub len: u8,
pub data: [u8; 180],
}
common
only.Expand description
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: [u8; 180]
RTCM message (may be fragmented).
Implementations§
source§impl GPS_RTCM_DATA_DATA
impl GPS_RTCM_DATA_DATA
pub const ENCODED_LEN: usize = 182usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for GPS_RTCM_DATA_DATA
impl Clone for GPS_RTCM_DATA_DATA
source§fn clone(&self) -> GPS_RTCM_DATA_DATA
fn clone(&self) -> GPS_RTCM_DATA_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 GPS_RTCM_DATA_DATA
impl Debug for GPS_RTCM_DATA_DATA
source§impl Default for GPS_RTCM_DATA_DATA
impl Default for GPS_RTCM_DATA_DATA
source§impl<'de> Deserialize<'de> for GPS_RTCM_DATA_DATA
impl<'de> Deserialize<'de> for GPS_RTCM_DATA_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 GPS_RTCM_DATA_DATA
impl MessageData for GPS_RTCM_DATA_DATA
const ID: u32 = 233u32
const NAME: &'static str = "GPS_RTCM_DATA"
const EXTRA_CRC: u8 = 35u8
const ENCODED_LEN: usize = 182usize
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 GPS_RTCM_DATA_DATA
impl PartialEq for GPS_RTCM_DATA_DATA
source§impl Serialize for GPS_RTCM_DATA_DATA
impl Serialize for GPS_RTCM_DATA_DATA
impl StructuralPartialEq for GPS_RTCM_DATA_DATA
Auto Trait Implementations§
impl Freeze for GPS_RTCM_DATA_DATA
impl RefUnwindSafe for GPS_RTCM_DATA_DATA
impl Send for GPS_RTCM_DATA_DATA
impl Sync for GPS_RTCM_DATA_DATA
impl Unpin for GPS_RTCM_DATA_DATA
impl UnwindSafe for GPS_RTCM_DATA_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
)