pub struct GPS_RTCM_DATA_DATA {
pub flags: u8,
pub len: u8,
pub data: [u8; 180],
}
avssuas
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 more