Tpv

Struct Tpv 

Source
pub struct Tpv {
Show 49 fields pub alt: Option<f64>, pub alt_hae: Option<f64>, pub alt_msl: Option<f64>, pub ant: Option<AntennaStatus>, pub base: Baseline, pub climb: Option<f64>, pub datum: Option<String>, pub device: Option<String>, pub depth: Option<f64>, pub dgps_age: Option<f64>, pub dgps_sta: Option<i32>, pub ecef: Ecef, pub epc: Option<f64>, pub epd: Option<f64>, pub eph: Option<f64>, pub eps: Option<f64>, pub ept: Option<f64>, pub epx: Option<f64>, pub epy: Option<f64>, pub epv: Option<f64>, pub geoid_sep: Option<f64>, pub lat: Option<f64>, pub jam: Option<i32>, pub leapseconds: Option<i32>, pub lon: Option<f64>, pub magtrack: Option<f64>, pub magvar: Option<f64>, pub mode: FixMode, pub ned: Ned, pub temp: Option<f64>, pub time: Option<DateTime<Utc>>, pub track: Option<f64>, pub sep: Option<f64>, pub speed: Option<f64>, pub status: Option<FixStatus>, pub wanglem: Option<f64>, pub wangler: Option<f64>, pub wanglet: Option<f64>, pub wspeedr: Option<f64>, pub wspeedt: Option<f64>, pub wtemp: Option<f64>, pub rtime: Option<DateTime<Utc>>, pub pps: Option<DateTime<Utc>>, pub sor: Option<DateTime<Utc>>, pub chars: Option<u64>, pub sats: Option<i32>, pub week: Option<u16>, pub tow: Option<f64>, pub rollovers: Option<i32>,
}
Expand description

Time-Position-Velocity (TPV) report

The TPV message is the core GPS fix report, containing time, position, and velocity data. This is the primary message type for navigation applications.

Reference: json_tpv_read

Fields§

§alt: Option<f64>

Altitude in meters (deprecated, use altMSL or altHAE)

§alt_hae: Option<f64>

Altitude, height above ellipsoid, in meters

§alt_msl: Option<f64>

Altitude, MSL (mean sea level) in meters

§ant: Option<AntennaStatus>

Antenna status (OK, OPEN, SHORT)

§base: Baseline

RTK baseline information (flattened)

§climb: Option<f64>

Climb/sink rate in meters per second

§datum: Option<String>

Geodetic datum (usually WGS84)

§device: Option<String>

Device path that provided this data

§depth: Option<f64>

Depth below mean sea level in meters

§dgps_age: Option<f64>

Age of DGPS corrections in seconds

§dgps_sta: Option<i32>

DGPS station ID

§ecef: Ecef

ECEF coordinates and velocities (flattened)

§epc: Option<f64>

Estimated climb error in meters/second

§epd: Option<f64>

Estimated track error in degrees

§eph: Option<f64>

Estimated horizontal position error in meters

§eps: Option<f64>

Estimated speed error in meters/second

§ept: Option<f64>

Estimated time error in seconds

§epx: Option<f64>

Longitude error estimate in meters

§epy: Option<f64>

Latitude error estimate in meters

§epv: Option<f64>

Estimated vertical error in meters

§geoid_sep: Option<f64>

Geoid separation (height of geoid above WGS84 ellipsoid) in meters

§lat: Option<f64>

Latitude in degrees (positive = North)

§jam: Option<i32>

Jamming indicator

§leapseconds: Option<i32>

Current leap seconds (GPS-UTC offset)

§lon: Option<f64>

Longitude in degrees (positive = East)

§magtrack: Option<f64>

Magnetic track (course over ground relative to magnetic north)

§magvar: Option<f64>

Magnetic variation in degrees

§mode: FixMode

GPS fix mode (NoFix, 2D, 3D)

§ned: Ned

NED velocity components (flattened)

§temp: Option<f64>

Temperature in degrees Celsius

§time: Option<DateTime<Utc>>

GPS time of fix

§track: Option<f64>

True track (course over ground) in degrees

§sep: Option<f64>

Spherical error probability in meters

§speed: Option<f64>

Speed over ground in meters/second

§status: Option<FixStatus>

GPS fix status (standard, DGPS, RTK, etc.)

§wanglem: Option<f64>

Wind angle magnetic in degrees

§wangler: Option<f64>

Wind angle relative in degrees

§wanglet: Option<f64>

Wind angle true in degrees

§wspeedr: Option<f64>

Wind speed relative in meters/second

§wspeedt: Option<f64>

Wind speed true in meters/second

§wtemp: Option<f64>

Water temperature in degrees Celsius

§rtime: Option<DateTime<Utc>>

Reception time (when enabled by timing policy)

§pps: Option<DateTime<Utc>>

PPS edge time (when enabled by timing policy)

§sor: Option<DateTime<Utc>>

Start of response time (when enabled by timing policy)

§chars: Option<u64>

Character count in the sentence

§sats: Option<i32>

Number of satellites used in solution

§week: Option<u16>

GPS week number

§tow: Option<f64>

GPS time of week in seconds

§rollovers: Option<i32>

GPS week rollover count

Trait Implementations§

Source§

impl Clone for Tpv

Source§

fn clone(&self) -> Tpv

Returns a duplicate 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 Tpv

Source§

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

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

impl<'de> Deserialize<'de> for Tpv

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 Tpv

Source§

fn eq(&self, other: &Tpv) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Tpv

Auto Trait Implementations§

§

impl Freeze for Tpv

§

impl RefUnwindSafe for Tpv

§

impl Send for Tpv

§

impl Sync for Tpv

§

impl Unpin for Tpv

§

impl UnwindSafe for Tpv

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,