Struct sbp::messages::observation::packed_osr_content::PackedOsrContent
source · pub struct PackedOsrContent {
pub p: u32,
pub l: CarrierPhase,
pub lock: u8,
pub flags: u8,
pub sid: GnssSignal,
pub iono_std: u16,
pub tropo_std: u16,
pub range_std: u16,
}
Expand description
Network correction for a particular satellite signal
Pseudorange and carrier phase network corrections for a satellite signal.
Fields§
§p: u32
Pseudorange observation
l: CarrierPhase
Carrier phase observation with typical sign convention.
lock: u8
Lock timer. This value gives an indication of the time for which a signal has maintained continuous phase lock. Whenever a signal has lost and regained lock, this value is reset to zero. It is encoded according to DF402 from the RTCM 10403.2 Amendment 2 specification. Valid values range from 0 to 15 and the most significant nibble is reserved for future use.
flags: u8
Correction flags.
sid: GnssSignal
GNSS signal identifier (16 bit)
iono_std: u16
Slant ionospheric correction standard deviation
tropo_std: u16
Slant tropospheric correction standard deviation
range_std: u16
Orbit/clock/bias correction projected on range standard deviation
Implementations§
source§impl PackedOsrContent
impl PackedOsrContent
sourcepub fn invalid_phase_corrections(&self) -> Result<InvalidPhaseCorrections, u8>
pub fn invalid_phase_corrections(&self) -> Result<InvalidPhaseCorrections, u8>
Gets the InvalidPhaseCorrections stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known InvalidPhaseCorrections
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of InvalidPhaseCorrections
were added.
sourcepub fn set_invalid_phase_corrections(
&mut self,
invalid_phase_corrections: InvalidPhaseCorrections
)
pub fn set_invalid_phase_corrections( &mut self, invalid_phase_corrections: InvalidPhaseCorrections )
Set the bitrange corresponding to the InvalidPhaseCorrections of the flags
bitfield.
sourcepub fn invalid_code_corrections(&self) -> Result<InvalidCodeCorrections, u8>
pub fn invalid_code_corrections(&self) -> Result<InvalidCodeCorrections, u8>
Gets the InvalidCodeCorrections stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known InvalidCodeCorrections
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of InvalidCodeCorrections
were added.
sourcepub fn set_invalid_code_corrections(
&mut self,
invalid_code_corrections: InvalidCodeCorrections
)
pub fn set_invalid_code_corrections( &mut self, invalid_code_corrections: InvalidCodeCorrections )
Set the bitrange corresponding to the InvalidCodeCorrections of the flags
bitfield.
sourcepub fn full_fixing_flag(&self) -> Result<FullFixingFlag, u8>
pub fn full_fixing_flag(&self) -> Result<FullFixingFlag, u8>
Gets the FullFixingFlag stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known FullFixingFlag
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of FullFixingFlag
were added.
sourcepub fn set_full_fixing_flag(&mut self, full_fixing_flag: FullFixingFlag)
pub fn set_full_fixing_flag(&mut self, full_fixing_flag: FullFixingFlag)
Set the bitrange corresponding to the FullFixingFlag of the flags
bitfield.
sourcepub fn partial_fixing_flag(&self) -> Result<PartialFixingFlag, u8>
pub fn partial_fixing_flag(&self) -> Result<PartialFixingFlag, u8>
Gets the PartialFixingFlag stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known PartialFixingFlag
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of PartialFixingFlag
were added.
sourcepub fn set_partial_fixing_flag(
&mut self,
partial_fixing_flag: PartialFixingFlag
)
pub fn set_partial_fixing_flag( &mut self, partial_fixing_flag: PartialFixingFlag )
Set the bitrange corresponding to the PartialFixingFlag of the flags
bitfield.
sourcepub fn correction_validity(&self) -> Result<CorrectionValidity, u8>
pub fn correction_validity(&self) -> Result<CorrectionValidity, u8>
Gets the CorrectionValidity stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known CorrectionValidity
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of CorrectionValidity
were added.
sourcepub fn set_correction_validity(
&mut self,
correction_validity: CorrectionValidity
)
pub fn set_correction_validity( &mut self, correction_validity: CorrectionValidity )
Set the bitrange corresponding to the CorrectionValidity of the flags
bitfield.
Trait Implementations§
source§impl Clone for PackedOsrContent
impl Clone for PackedOsrContent
source§fn clone(&self) -> PackedOsrContent
fn clone(&self) -> PackedOsrContent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackedOsrContent
impl Debug for PackedOsrContent
source§impl<'de> Deserialize<'de> for PackedOsrContent
impl<'de> Deserialize<'de> for PackedOsrContent
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 PartialEq for PackedOsrContent
impl PartialEq for PackedOsrContent
source§fn eq(&self, other: &PackedOsrContent) -> bool
fn eq(&self, other: &PackedOsrContent) -> bool
self
and other
values to be equal, and is used
by ==
.