Struct sbp::messages::telemetry::telemetry_sv::TelemetrySV

source ·
pub struct TelemetrySV {
    pub az: u8,
    pub el: i8,
    pub availability_flags: u8,
    pub pseudorange_residual: i16,
    pub phase_residual: i16,
    pub outlier_flags: u8,
    pub ephemeris_flags: u8,
    pub correction_flags: u8,
    pub sid: GnssSignal,
}
Expand description

Array of per-signal telemetry entries

Fields§

§az: u8

Azimuth angle (range 0..179)

§el: i8

Elevation angle (range -90..90)

§availability_flags: u8

Observation availability at filter update

§pseudorange_residual: i16

Pseudorange observation residual

§phase_residual: i16

Carrier-phase or carrier-phase-derived observation residual

§outlier_flags: u8

Reports if observation is marked as an outlier and is excluded from the update

§ephemeris_flags: u8

Ephemeris metadata

§correction_flags: u8

Reserved

§sid: GnssSignal

GNSS signal identifier (16 bit)

Implementations§

source§

impl TelemetrySV

source

pub fn measured_doppler_availability( &self ) -> Result<MeasuredDopplerAvailability, u8>

Gets the MeasuredDopplerAvailability stored in the availability_flags bitfield.

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

source

pub fn set_measured_doppler_availability( &mut self, measured_doppler_availability: MeasuredDopplerAvailability )

Set the bitrange corresponding to the MeasuredDopplerAvailability of the availability_flags bitfield.

source

pub fn computed_doppler_availability( &self ) -> Result<ComputedDopplerAvailability, u8>

Gets the ComputedDopplerAvailability stored in the availability_flags bitfield.

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

source

pub fn set_computed_doppler_availability( &mut self, computed_doppler_availability: ComputedDopplerAvailability )

Set the bitrange corresponding to the ComputedDopplerAvailability of the availability_flags bitfield.

source

pub fn carrierphase_availability(&self) -> Result<CarrierPhaseAvailability, u8>

Gets the CarrierPhaseAvailability stored in the availability_flags bitfield.

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

source

pub fn set_carrierphase_availability( &mut self, carrierphase_availability: CarrierPhaseAvailability )

Set the bitrange corresponding to the CarrierPhaseAvailability of the availability_flags bitfield.

source

pub fn pseudorange_availability(&self) -> Result<PseudorangeAvailability, u8>

Gets the PseudorangeAvailability stored in the availability_flags bitfield.

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

source

pub fn set_pseudorange_availability( &mut self, pseudorange_availability: PseudorangeAvailability )

Set the bitrange corresponding to the PseudorangeAvailability of the availability_flags bitfield.

source

pub fn measured_doppler_outlier(&self) -> Result<MeasuredDopplerOutlier, u8>

Gets the MeasuredDopplerOutlier stored in the outlier_flags bitfield.

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

source

pub fn set_measured_doppler_outlier( &mut self, measured_doppler_outlier: MeasuredDopplerOutlier )

Set the bitrange corresponding to the MeasuredDopplerOutlier of the outlier_flags bitfield.

source

pub fn computed_doppler_outlier(&self) -> Result<ComputedDopplerOutlier, u8>

Gets the ComputedDopplerOutlier stored in the outlier_flags bitfield.

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

source

pub fn set_computed_doppler_outlier( &mut self, computed_doppler_outlier: ComputedDopplerOutlier )

Set the bitrange corresponding to the ComputedDopplerOutlier of the outlier_flags bitfield.

source

pub fn carrierphase_outlier(&self) -> Result<CarrierPhaseOutlier, u8>

Gets the CarrierPhaseOutlier stored in the outlier_flags bitfield.

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

source

pub fn set_carrierphase_outlier( &mut self, carrierphase_outlier: CarrierPhaseOutlier )

Set the bitrange corresponding to the CarrierPhaseOutlier of the outlier_flags bitfield.

source

pub fn pseudorange_outlier(&self) -> Result<PseudorangeOutlier, u8>

Gets the PseudorangeOutlier stored in the outlier_flags bitfield.

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

source

pub fn set_pseudorange_outlier( &mut self, pseudorange_outlier: PseudorangeOutlier )

Set the bitrange corresponding to the PseudorangeOutlier of the outlier_flags bitfield.

source

pub fn ephemeris_available(&self) -> Result<EphemerisAvailable, u8>

Gets the EphemerisAvailable stored in the ephemeris_flags bitfield.

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

source

pub fn set_ephemeris_available( &mut self, ephemeris_available: EphemerisAvailable )

Set the bitrange corresponding to the EphemerisAvailable of the ephemeris_flags bitfield.

Trait Implementations§

source§

impl Clone for TelemetrySV

source§

fn clone(&self) -> TelemetrySV

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 Debug for TelemetrySV

source§

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

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

impl<'de> Deserialize<'de> for TelemetrySV

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 PartialEq for TelemetrySV

source§

fn eq(&self, other: &TelemetrySV) -> 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 Serialize for TelemetrySV

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 StructuralPartialEq for TelemetrySV

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> 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>,