Struct gpsd_proto::Sky

source ·
pub struct Sky {
    pub device: Option<String>,
    pub xdop: Option<f32>,
    pub ydop: Option<f32>,
    pub vdop: Option<f32>,
    pub tdop: Option<f32>,
    pub hdop: Option<f32>,
    pub gdop: Option<f32>,
    pub pdop: Option<f32>,
    pub satellites: Option<Vec<Satellite>>,
}
Expand description

Satellites information.

A SKY object reports a sky view of the GPS satellite positions. If there is no GPS device available, or no skyview has been reported yet.

Many devices compute dilution of precision factors but do not include them in their reports. Many that do report DOPs report only HDOP, two-dimensional circular error. gpsd always passes through whatever the device actually reports, then attempts to fill in other DOPs by calculating the appropriate determinants in a covariance matrix based on the satellite view. DOPs may be missing if some of these determinants are singular. It can even happen that the device reports an error estimate in meters when the corresponding DOP is unavailable; some devices use more sophisticated error modeling than the covariance calculation.

Fields§

§device: Option<String>

Name of originating device.

§xdop: Option<f32>

Longitudinal dilution of precision, a dimensionless factor which should be multiplied by a base UERE to get an error estimate.

§ydop: Option<f32>

Latitudinal dilution of precision, a dimensionless factor which should be multiplied by a base UERE to get an error estimate.

§vdop: Option<f32>

Altitude dilution of precision, a dimensionless factor which should be multiplied by a base UERE to get an error estimate.

§tdop: Option<f32>

Time dilution of precision, a dimensionless factor which should be multiplied by a base UERE to get an error estimate.

§hdop: Option<f32>

Horizontal dilution of precision, a dimensionless factor which should be multiplied by a base UERE to get a circular error estimate.

§gdop: Option<f32>

Hyperspherical dilution of precision, a dimensionless factor which should be multiplied by a base UERE to get an error estimate.

§pdop: Option<f32>

Spherical dilution of precision, a dimensionless factor which should be multiplied by a base UERE to get an error estimate.

§satellites: Option<Vec<Satellite>>

List of satellite objects in skyview.

Trait Implementations§

source§

impl Clone for Sky

source§

fn clone(&self) -> Sky

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 Sky

source§

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

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

impl<'de> Deserialize<'de> for Sky

source§

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Sky

§

impl Send for Sky

§

impl Sync for Sky

§

impl Unpin for Sky

§

impl UnwindSafe for Sky

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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 Twhere 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 Twhere T: for<'de> Deserialize<'de>,