Struct gpsd_proto::Tpv
source · pub struct Tpv {Show 22 fields
pub device: Option<String>,
pub status: Option<i32>,
pub mode: Mode,
pub time: Option<String>,
pub ept: Option<f32>,
pub leapseconds: Option<i32>,
pub alt_msl: Option<f32>,
pub alt_hae: Option<f32>,
pub geoid_sep: Option<f32>,
pub lat: Option<f64>,
pub lon: Option<f64>,
pub alt: Option<f32>,
pub epx: Option<f32>,
pub epy: Option<f32>,
pub epv: Option<f32>,
pub track: Option<f32>,
pub speed: Option<f32>,
pub climb: Option<f32>,
pub epd: Option<f32>,
pub eps: Option<f32>,
pub epc: Option<f32>,
pub eph: Option<f32>,
}
Expand description
GPS position.
A TPV object is a time-position-velocity report. The “mode” field will be emitted before optional fields that may be absent when there is no fix. Error estimates will be emitted after the fix components they’re associated with. Others may be reported or not depending on the fix quality.
Fields§
§device: Option<String>
Name of the originating device.
status: Option<i32>
GPS fix status.
mode: Mode
NMEA mode, see Mode
enum.
time: Option<String>
Time/date stamp in ISO8601 format, UTC. May have a fractional part of up to .001sec precision. May be absent if mode is not 2 or 3.
ept: Option<f32>
Estimated timestamp error (%f, seconds, 95% confidence). Present if time is present.
leapseconds: Option<i32>
§alt_msl: Option<f32>
MSL altitude in meters.
alt_hae: Option<f32>
Altitude height above ellipsoid (elipsoid is unspecified, but probably WGS48)
geoid_sep: Option<f32>
Geoid separation between whatever geoid the device uses and WGS84, in metres
lat: Option<f64>
Latitude in degrees: +/- signifies North/South. Present when mode is 2 or 3.
lon: Option<f64>
Longitude in degrees: +/- signifies East/West. Present when mode is 2 or 3.
alt: Option<f32>
Altitude in meters. Present if mode is 3.
epx: Option<f32>
Longitude error estimate in meters, 95% confidence. Present if mode is 2 or 3 and DOPs can be calculated from the satellite view.
epy: Option<f32>
Latitude error estimate in meters, 95% confidence. Present if mode is 2 or 3 and DOPs can be calculated from the satellite view.
epv: Option<f32>
Estimated vertical error in meters, 95% confidence. Present if mode is 3 and DOPs can be calculated from the satellite view.
track: Option<f32>
Course over ground, degrees from true north.
speed: Option<f32>
Speed over ground, meters per second.
climb: Option<f32>
Climb (positive) or sink (negative) rate, meters per second.
epd: Option<f32>
Direction error estimate in degrees, 95% confidence.
eps: Option<f32>
Speed error estinmate in meters/sec, 95% confidence.
epc: Option<f32>
Climb/sink error estimate in meters/sec, 95% confidence.
eph: Option<f32>
Horizontal 2D position error in meters.