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.

§nav_flags: u8

Navigation data status flags.

§pset_flags: u8

Parameters sets flags.

§misc_flags: u8

Miscellaneous flags.

Implementations§

source§

impl MsgTrackingStateDetailedDep

source

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.

source

pub fn set_synchronization_status( &mut self, synchronization_status: SynchronizationStatus )

Set the bitrange corresponding to the SynchronizationStatus of the sync_flags bitfield.

source

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.

source

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.

source

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.

source

pub fn set_tow_status(&mut self, tow_status: TowStatus)

Set the bitrange corresponding to the TowStatus of the tow_flags bitfield.

source

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.

source

pub fn set_fll_status(&mut self, fll_status: FllStatus)

Set the bitrange corresponding to the FllStatus of the track_flags bitfield.

source

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.

source

pub fn set_pll_status(&mut self, pll_status: PllStatus)

Set the bitrange corresponding to the PllStatus of the track_flags bitfield.

source

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.

source

pub fn set_tracking_loop_status( &mut self, tracking_loop_status: TrackingLoopStatus )

Set the bitrange corresponding to the TrackingLoopStatus of the track_flags bitfield.

source

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.

source

pub fn set_almanac_availability_status( &mut self, almanac_availability_status: AlmanacAvailabilityStatus )

Set the bitrange corresponding to the AlmanacAvailabilityStatus of the nav_flags bitfield.

source

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.

source

pub fn set_ephemeris_availability_status( &mut self, ephemeris_availability_status: EphemerisAvailabilityStatus )

Set the bitrange corresponding to the EphemerisAvailabilityStatus of the nav_flags bitfield.

source

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.

source

pub fn set_health_status(&mut self, health_status: HealthStatus)

Set the bitrange corresponding to the HealthStatus of the nav_flags bitfield.

source

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.

source

pub fn set_parameter_sets(&mut self, parameter_sets: ParameterSets)

Set the bitrange corresponding to the ParameterSets of the pset_flags bitfield.

source

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.

source

pub fn set_clock_validity_status( &mut self, clock_validity_status: ClockValidityStatus )

Set the bitrange corresponding to the ClockValidityStatus of the misc_flags bitfield.

source

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.

source

pub fn set_pseudorange_validity_status( &mut self, pseudorange_validity_status: PseudorangeValidityStatus )

Set the bitrange corresponding to the PseudorangeValidityStatus of the misc_flags bitfield.

source

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.

source

pub fn set_acceleration_validity_status( &mut self, acceleration_validity_status: AccelerationValidityStatus )

Set the bitrange corresponding to the AccelerationValidityStatus of the misc_flags bitfield.

source

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.

source

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.

source

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.

source

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§

source§

impl Clone for MsgTrackingStateDetailedDep

source§

fn clone(&self) -> MsgTrackingStateDetailedDep

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ConcreteMessage for MsgTrackingStateDetailedDep

source§

const MESSAGE_TYPE: u16 = 17u16

The message type.
source§

const MESSAGE_NAME: &'static str = "MSG_TRACKING_STATE_DETAILED_DEP"

The message name.
source§

impl Debug for MsgTrackingStateDetailedDep

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for MsgTrackingStateDetailedDep

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl FriendlyName for MsgTrackingStateDetailedDep

source§

fn friendly_name() -> &'static str

source§

impl From<MsgTrackingStateDetailedDep> for Sbp

source§

fn from(msg: MsgTrackingStateDetailedDep) -> Self

Converts to this type from the input type.
source§

impl PartialEq for MsgTrackingStateDetailedDep

source§

fn eq(&self, other: &MsgTrackingStateDetailedDep) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SbpMessage for MsgTrackingStateDetailedDep

source§

fn message_name(&self) -> &'static str

Get the message name.
source§

fn message_type(&self) -> Option<u16>

Get the message type.
source§

fn sender_id(&self) -> Option<u16>

Get the sender_id if it is set.
source§

fn set_sender_id(&mut self, new_id: u16)

Set the sender id.
source§

fn encoded_len(&self) -> usize

Number of bytes this message will take on the wire.
source§

fn is_valid(&self) -> bool

Tells you if the message is valid or if it is not a valid message and may need to be special cased at certain points.
source§

fn into_valid_msg(self) -> Result<Self, Invalid>

source§

fn gps_time(&self) -> Option<Result<MessageTime, GpsTimeError>>

Get the GPS time associated with the message.
source§

fn friendly_name(&self) -> &'static str

Get friendly name associated with the message.
source§

impl Serialize for MsgTrackingStateDetailedDep

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<Sbp> for MsgTrackingStateDetailedDep

§

type Error = TryFromSbpError

The type returned in the event of a conversion error.
source§

fn try_from(msg: Sbp) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl StructuralPartialEq for MsgTrackingStateDetailedDep

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Event for T
where T: ConcreteMessage,

source§

const MESSAGE_TYPES: &'static [u16] = const MESSAGE_TYPES: &'static [u16] = &[T::MESSAGE_TYPE];

The message types that correspond to this event. An empty slice means all messages.
source§

fn from_sbp(msg: Sbp) -> T

Create an instance of this event from an SBP message. This message will only be called if the message type is in Event::MESSAGE_TYPES.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,