GPSDataT

Struct GPSDataT 

Source
#[repr(C)]
pub struct GPSDataT {
Show 17 fields pub set: GPSMaskT, pub online: TimestampT, pub gps_fd: SocketT, pub fix: GPSFixT, pub separation: c_double, pub status: c_int, pub satellites_used: c_int, pub dop: DopT, pub epe: c_double, pub skyview_time: TimestampT, pub satellites_visible: c_int, pub skyview: [SatelliteT; 72], pub dev: DevconfigT, pub policy: PolicyT, pub devices: Devices, pub union_never_reported: [c_int; 1418], pub privdata: *mut c_void,
}

Fields§

§set: GPSMaskT

has field been set since this was last cleared?

§online: TimestampT

NZ if GPS is on line, 0 if not.

Note: gpsd clears this time when sentences fail to show up within the GPS’s normal send cycle time. If the host-to-GPS link is lossy enough to drop entire sentences, this field will be prone to false zero values.

§gps_fd: SocketT§fix: GPSFixT

socket or file descriptor to GPS accumulated PVT data

§separation: c_double

this should move to the per-driver structure

§status: c_int

Geoidal separation, MSL - WGS84 (Meters) GPS status – always valid

§satellites_used: c_int

Do we have a fix? precision of fix – valid if satellites_used > 0

§dop: DopT

Number of satellites used in solution

§epe: c_double

redundant with the estimate elements in the fix structure

§skyview_time: TimestampT

spherical position error, 95% confidence (meters) satellite status – valid when satellites_visible > 0

§satellites_visible: c_int

skyview timestamp

§of satellites in view

§skyview: [SatelliteT; 72]§dev: DevconfigT§policy: PolicyT

device that shipped last update

§devices: Devices

our listening policy

§union_never_reported: [c_int; 1418]

Private data rtcm3_t largest in union -> sizeof 5672 = 4*1418

§privdata: *mut c_void

Private data - client code must not set this

Trait Implementations§

Source§

impl Default for GPSDataT

Source§

fn default() -> GPSDataT

Returns the “default value” for a type. Read more
Source§

impl Display for GPSDataT

Source§

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

Formats the value using the given formatter. 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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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

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.