Struct sbp::messages::tracking::msg_tracking_state_detailed_dep::MsgTrackingStateDetailedDep
source · [−]pub struct MsgTrackingStateDetailedDep {Show 22 fields
pub sender_id: Option<u16>,
pub recv_time: u64,
pub tot: GpsTimeDep,
pub p: u32,
pub p_std: u16,
pub l: CarrierPhase,
pub cn0: u8,
pub lock: u16,
pub sid: GnssSignalDep,
pub doppler: i32,
pub doppler_std: u16,
pub uptime: u32,
pub clock_offset: i16,
pub clock_drift: i16,
pub corr_spacing: u16,
pub acceleration: i8,
pub sync_flags: u8,
pub tow_flags: u8,
pub track_flags: u8,
pub nav_flags: u8,
pub pset_flags: u8,
pub misc_flags: u8,
}
Expand description
Deprecated
Deprecated.
Fields
sender_id: Option<u16>
The message sender_id
recv_time: u64
Receiver clock time.
tot: GpsTimeDep
Time of transmission of signal from satellite. TOW only valid when TOW status is decoded or propagated. WN only valid when week number valid flag is set.
p: u32
Pseudorange observation. Valid only when pseudorange valid flag is set.
p_std: u16
Pseudorange observation standard deviation. Valid only when pseudorange valid flag is set.
l: CarrierPhase
Carrier phase observation with typical sign convention. Valid only when PLL pessimistic lock is achieved.
cn0: u8
Carrier-to-Noise density
lock: u16
Lock time. It is encoded according to DF402 from the RTCM 10403.2 Amendment 2 specification. Valid values range from 0 to 15.
sid: GnssSignalDep
GNSS signal identifier.
doppler: i32
Carrier Doppler frequency.
doppler_std: u16
Carrier Doppler frequency standard deviation.
uptime: u32
Number of seconds of continuous tracking. Specifies how much time signal is in continuous track.
clock_offset: i16
TCXO clock offset. Valid only when valid clock valid flag is set.
clock_drift: i16
TCXO clock drift. Valid only when valid clock valid flag is set.
corr_spacing: u16
Early-Prompt (EP) and Prompt-Late (PL) correlators spacing.
acceleration: i8
Acceleration. Valid only when acceleration valid flag is set.
sync_flags: u8
Synchronization status flags.
tow_flags: u8
TOW status flags.
track_flags: u8
Tracking loop status flags.
Navigation data status flags.
pset_flags: u8
Parameters sets flags.
misc_flags: u8
Miscellaneous flags.
Implementations
sourceimpl MsgTrackingStateDetailedDep
impl MsgTrackingStateDetailedDep
sourcepub fn synchronization_status(&self) -> Result<SynchronizationStatus, u8>
pub fn synchronization_status(&self) -> Result<SynchronizationStatus, u8>
Gets the SynchronizationStatus stored in the sync_flags
bitfield.
Returns Ok
if the bitrange contains a known SynchronizationStatus
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 SynchronizationStatus
were added.
sourcepub fn set_synchronization_status(
&mut self,
synchronization_status: SynchronizationStatus
)
pub fn set_synchronization_status(
&mut self,
synchronization_status: SynchronizationStatus
)
Set the bitrange corresponding to the SynchronizationStatus of the sync_flags
bitfield.
sourcepub fn week_number_validity_status(
&self
) -> Result<WeekNumberValidityStatus, u8>
pub fn week_number_validity_status(
&self
) -> Result<WeekNumberValidityStatus, u8>
Gets the WeekNumberValidityStatus stored in the tow_flags
bitfield.
Returns Ok
if the bitrange contains a known WeekNumberValidityStatus
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 WeekNumberValidityStatus
were added.
sourcepub fn set_week_number_validity_status(
&mut self,
week_number_validity_status: WeekNumberValidityStatus
)
pub fn set_week_number_validity_status(
&mut self,
week_number_validity_status: WeekNumberValidityStatus
)
Set the bitrange corresponding to the WeekNumberValidityStatus of the tow_flags
bitfield.
sourcepub fn tow_status(&self) -> Result<TowStatus, u8>
pub fn tow_status(&self) -> Result<TowStatus, u8>
Gets the TowStatus stored in the tow_flags
bitfield.
Returns Ok
if the bitrange contains a known TowStatus
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 TowStatus
were added.
sourcepub fn set_tow_status(&mut self, tow_status: TowStatus)
pub fn set_tow_status(&mut self, tow_status: TowStatus)
Set the bitrange corresponding to the TowStatus of the tow_flags
bitfield.
sourcepub fn fll_status(&self) -> Result<FllStatus, u8>
pub fn fll_status(&self) -> Result<FllStatus, u8>
Gets the FllStatus stored in the track_flags
bitfield.
Returns Ok
if the bitrange contains a known FllStatus
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 FllStatus
were added.
sourcepub fn set_fll_status(&mut self, fll_status: FllStatus)
pub fn set_fll_status(&mut self, fll_status: FllStatus)
Set the bitrange corresponding to the FllStatus of the track_flags
bitfield.
sourcepub fn pll_status(&self) -> Result<PllStatus, u8>
pub fn pll_status(&self) -> Result<PllStatus, u8>
Gets the PllStatus stored in the track_flags
bitfield.
Returns Ok
if the bitrange contains a known PllStatus
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 PllStatus
were added.
sourcepub fn set_pll_status(&mut self, pll_status: PllStatus)
pub fn set_pll_status(&mut self, pll_status: PllStatus)
Set the bitrange corresponding to the PllStatus of the track_flags
bitfield.
sourcepub fn tracking_loop_status(&self) -> Result<TrackingLoopStatus, u8>
pub fn tracking_loop_status(&self) -> Result<TrackingLoopStatus, u8>
Gets the TrackingLoopStatus stored in the track_flags
bitfield.
Returns Ok
if the bitrange contains a known TrackingLoopStatus
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 TrackingLoopStatus
were added.
sourcepub fn set_tracking_loop_status(
&mut self,
tracking_loop_status: TrackingLoopStatus
)
pub fn set_tracking_loop_status(
&mut self,
tracking_loop_status: TrackingLoopStatus
)
Set the bitrange corresponding to the TrackingLoopStatus of the track_flags
bitfield.
sourcepub fn almanac_availability_status(
&self
) -> Result<AlmanacAvailabilityStatus, u8>
pub fn almanac_availability_status(
&self
) -> Result<AlmanacAvailabilityStatus, u8>
Gets the AlmanacAvailabilityStatus stored in the nav_flags
bitfield.
Returns Ok
if the bitrange contains a known AlmanacAvailabilityStatus
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 AlmanacAvailabilityStatus
were added.
sourcepub fn set_almanac_availability_status(
&mut self,
almanac_availability_status: AlmanacAvailabilityStatus
)
pub fn set_almanac_availability_status(
&mut self,
almanac_availability_status: AlmanacAvailabilityStatus
)
Set the bitrange corresponding to the AlmanacAvailabilityStatus of the nav_flags
bitfield.
sourcepub fn ephemeris_availability_status(
&self
) -> Result<EphemerisAvailabilityStatus, u8>
pub fn ephemeris_availability_status(
&self
) -> Result<EphemerisAvailabilityStatus, u8>
Gets the EphemerisAvailabilityStatus stored in the nav_flags
bitfield.
Returns Ok
if the bitrange contains a known EphemerisAvailabilityStatus
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 EphemerisAvailabilityStatus
were added.
sourcepub fn set_ephemeris_availability_status(
&mut self,
ephemeris_availability_status: EphemerisAvailabilityStatus
)
pub fn set_ephemeris_availability_status(
&mut self,
ephemeris_availability_status: EphemerisAvailabilityStatus
)
Set the bitrange corresponding to the EphemerisAvailabilityStatus of the nav_flags
bitfield.
sourcepub fn health_status(&self) -> Result<HealthStatus, u8>
pub fn health_status(&self) -> Result<HealthStatus, u8>
Gets the HealthStatus stored in the nav_flags
bitfield.
Returns Ok
if the bitrange contains a known HealthStatus
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 HealthStatus
were added.
sourcepub fn set_health_status(&mut self, health_status: HealthStatus)
pub fn set_health_status(&mut self, health_status: HealthStatus)
Set the bitrange corresponding to the HealthStatus of the nav_flags
bitfield.
sourcepub fn parameter_sets(&self) -> Result<ParameterSets, u8>
pub fn parameter_sets(&self) -> Result<ParameterSets, u8>
Gets the ParameterSets stored in the pset_flags
bitfield.
Returns Ok
if the bitrange contains a known ParameterSets
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 ParameterSets
were added.
sourcepub fn set_parameter_sets(&mut self, parameter_sets: ParameterSets)
pub fn set_parameter_sets(&mut self, parameter_sets: ParameterSets)
Set the bitrange corresponding to the ParameterSets of the pset_flags
bitfield.
sourcepub fn clock_validity_status(&self) -> Result<ClockValidityStatus, u8>
pub fn clock_validity_status(&self) -> Result<ClockValidityStatus, u8>
Gets the ClockValidityStatus stored in the misc_flags
bitfield.
Returns Ok
if the bitrange contains a known ClockValidityStatus
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 ClockValidityStatus
were added.
sourcepub fn set_clock_validity_status(
&mut self,
clock_validity_status: ClockValidityStatus
)
pub fn set_clock_validity_status(
&mut self,
clock_validity_status: ClockValidityStatus
)
Set the bitrange corresponding to the ClockValidityStatus of the misc_flags
bitfield.
sourcepub fn pseudorange_validity_status(
&self
) -> Result<PseudorangeValidityStatus, u8>
pub fn pseudorange_validity_status(
&self
) -> Result<PseudorangeValidityStatus, u8>
Gets the PseudorangeValidityStatus stored in the misc_flags
bitfield.
Returns Ok
if the bitrange contains a known PseudorangeValidityStatus
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 PseudorangeValidityStatus
were added.
sourcepub fn set_pseudorange_validity_status(
&mut self,
pseudorange_validity_status: PseudorangeValidityStatus
)
pub fn set_pseudorange_validity_status(
&mut self,
pseudorange_validity_status: PseudorangeValidityStatus
)
Set the bitrange corresponding to the PseudorangeValidityStatus of the misc_flags
bitfield.
sourcepub fn acceleration_validity_status(
&self
) -> Result<AccelerationValidityStatus, u8>
pub fn acceleration_validity_status(
&self
) -> Result<AccelerationValidityStatus, u8>
Gets the AccelerationValidityStatus stored in the misc_flags
bitfield.
Returns Ok
if the bitrange contains a known AccelerationValidityStatus
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 AccelerationValidityStatus
were added.
sourcepub fn set_acceleration_validity_status(
&mut self,
acceleration_validity_status: AccelerationValidityStatus
)
pub fn set_acceleration_validity_status(
&mut self,
acceleration_validity_status: AccelerationValidityStatus
)
Set the bitrange corresponding to the AccelerationValidityStatus of the misc_flags
bitfield.
sourcepub fn carrier_half_cycle_ambiguity_status(
&self
) -> Result<CarrierHalfCycleAmbiguityStatus, u8>
pub fn carrier_half_cycle_ambiguity_status(
&self
) -> Result<CarrierHalfCycleAmbiguityStatus, u8>
Gets the CarrierHalfCycleAmbiguityStatus stored in the misc_flags
bitfield.
Returns Ok
if the bitrange contains a known CarrierHalfCycleAmbiguityStatus
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 CarrierHalfCycleAmbiguityStatus
were added.
sourcepub fn set_carrier_half_cycle_ambiguity_status(
&mut self,
carrier_half_cycle_ambiguity_status: CarrierHalfCycleAmbiguityStatus
)
pub fn set_carrier_half_cycle_ambiguity_status(
&mut self,
carrier_half_cycle_ambiguity_status: CarrierHalfCycleAmbiguityStatus
)
Set the bitrange corresponding to the CarrierHalfCycleAmbiguityStatus of the misc_flags
bitfield.
sourcepub fn tracking_channel_status(&self) -> Result<TrackingChannelStatus, u8>
pub fn tracking_channel_status(&self) -> Result<TrackingChannelStatus, u8>
Gets the TrackingChannelStatus stored in the misc_flags
bitfield.
Returns Ok
if the bitrange contains a known TrackingChannelStatus
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 TrackingChannelStatus
were added.
sourcepub fn set_tracking_channel_status(
&mut self,
tracking_channel_status: TrackingChannelStatus
)
pub fn set_tracking_channel_status(
&mut self,
tracking_channel_status: TrackingChannelStatus
)
Set the bitrange corresponding to the TrackingChannelStatus of the misc_flags
bitfield.
Trait Implementations
sourceimpl Clone for MsgTrackingStateDetailedDep
impl Clone for MsgTrackingStateDetailedDep
sourcefn clone(&self) -> MsgTrackingStateDetailedDep
fn clone(&self) -> MsgTrackingStateDetailedDep
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgTrackingStateDetailedDep
impl ConcreteMessage for MsgTrackingStateDetailedDep
sourceconst MESSAGE_TYPE: u16 = 17u16
const MESSAGE_TYPE: u16 = 17u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_TRACKING_STATE_DETAILED_DEP"
const MESSAGE_NAME: &'static str = "MSG_TRACKING_STATE_DETAILED_DEP"
The message name.
sourceimpl Debug for MsgTrackingStateDetailedDep
impl Debug for MsgTrackingStateDetailedDep
sourceimpl From<MsgTrackingStateDetailedDep> for Sbp
impl From<MsgTrackingStateDetailedDep> for Sbp
sourcefn from(msg: MsgTrackingStateDetailedDep) -> Self
fn from(msg: MsgTrackingStateDetailedDep) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgTrackingStateDetailedDep
impl SbpMessage for MsgTrackingStateDetailedDep
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgTrackingStateDetailedDep
impl Send for MsgTrackingStateDetailedDep
impl Sync for MsgTrackingStateDetailedDep
impl Unpin for MsgTrackingStateDetailedDep
impl UnwindSafe for MsgTrackingStateDetailedDep
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more