pub struct PackedObsContent {
    pub p: u32,
    pub l: CarrierPhase,
    pub d: Doppler,
    pub cn0: u8,
    pub lock: u8,
    pub flags: u8,
    pub sid: GnssSignal,
}
Expand description

GNSS observations for a particular satellite signal

Pseudorange and carrier phase observation for a satellite being tracked. The observations are interoperable with 3rd party receivers and conform with typical RTCM 3.1 message GPS/GLO observations.

Carrier phase observations are not guaranteed to be aligned to the RINEX 3 or RTCM 3.3 MSM reference signal and no 1/4 cycle adjustments are currently performed.

Fields

p: u32

Pseudorange observation

l: CarrierPhase

Carrier phase observation with typical sign convention.

d: Doppler

Doppler observation with typical sign convention.

cn0: u8

Carrier-to-Noise density. Zero implies invalid cn0.

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

Measurement status flags. A bit field of flags providing the status of this observation. If this field is 0 it means only the Cn0 estimate for the signal is valid.

sid: GnssSignal

GNSS signal identifier (16 bit)

Implementations

Gets the RaimExclusion stored in the flags bitfield.

Returns Ok if the bitrange contains a known RaimExclusion 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 RaimExclusion were added.

Set the bitrange corresponding to the RaimExclusion of the flags bitfield.

Gets the DopplerValid stored in the flags bitfield.

Returns Ok if the bitrange contains a known DopplerValid 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 DopplerValid were added.

Set the bitrange corresponding to the DopplerValid of the flags bitfield.

Gets the HalfCycleAmbiguity stored in the flags bitfield.

Returns Ok if the bitrange contains a known HalfCycleAmbiguity 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 HalfCycleAmbiguity were added.

Set the bitrange corresponding to the HalfCycleAmbiguity of the flags bitfield.

Gets the CarrierPhaseValid stored in the flags bitfield.

Returns Ok if the bitrange contains a known CarrierPhaseValid 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 CarrierPhaseValid were added.

Set the bitrange corresponding to the CarrierPhaseValid of the flags bitfield.

Gets the PseudorangeValid stored in the flags bitfield.

Returns Ok if the bitrange contains a known PseudorangeValid 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 PseudorangeValid were added.

Set the bitrange corresponding to the PseudorangeValid of the flags bitfield.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.