Skip to main content

Satellite

Struct Satellite 

pub struct Satellite {
    pub prn: i16,
    pub elevation: Option<f32>,
    pub azimuth: Option<f32>,
    pub ss: Option<f32>,
    pub used: bool,
    pub gnss_id: Option<u8>,
    pub satellite_id: Option<u8>,
    pub signal_id: Option<u8>,
    pub freq_id: Option<u8>,
    pub health: Option<u8>,
}
Expand description

Satellite object.

Fields§

§prn: i16

PRN ID of the satellite.

See “PRN, GNSS id, SV id, and SIG id”

§elevation: Option<f32>

Elevation in degrees.

§azimuth: Option<f32>

Azimuth, degrees from true north.

§ss: Option<f32>

Signal to Noise ratio in dBHz.

§used: bool

Used in current solution?

(SBAS/WAAS/EGNOS satellites may be flagged used if the solution has corrections from them, but not all drivers make this information available.)

§gnss_id: Option<u8>

The GNSS ID.

See “PRN, GNSS id, SV id, and SIG id”

§satellite_id: Option<u8>

The satellite ID (PRN) within its constellation.

§signal_id: Option<u8>

The signal ID of this signal.

See “PRN, GNSS id, SV id, and SIG id” u-blox, not NMEA. See u-blox doc for details.

§freq_id: Option<u8>

For GLONASS satellites only: the frequency ID of the signal.

As defined by u-blox, range 0 to 13. The freqid is the frequency slot plus 7.

§health: Option<u8>

The health of this satellite. 0 is unknown, 1 is OK, and 2 is unhealthy.

Trait Implementations§

§

impl Debug for Satellite

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Satellite

§

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

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

impl Serialize for Satellite

§

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

Serialize this value into the given Serde serializer. Read more

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.