#[repr(C)]
pub struct nrf_modem_gnss_pvt_data_frame {
Show 19 fields pub latitude: f64, pub longitude: f64, pub altitude: f32, pub accuracy: f32, pub altitude_accuracy: f32, pub speed: f32, pub speed_accuracy: f32, pub vertical_speed: f32, pub vertical_speed_accuracy: f32, pub heading: f32, pub heading_accuracy: f32, pub datetime: nrf_modem_gnss_datetime, pub pdop: f32, pub hdop: f32, pub vdop: f32, pub tdop: f32, pub flags: u8, pub sv: [nrf_modem_gnss_sv; 12], pub execution_time: u32,
}
Expand description

Position, Velocity and Time (PVT) data frame.

Fields§

§latitude: f64

Latitude in degrees.

§longitude: f64

Longitude in degrees.

§altitude: f32

Altitude above WGS-84 ellipsoid in meters.

§accuracy: f32

Position accuracy (2D 1-sigma) in meters.

§altitude_accuracy: f32

Altitude accuracy (1-sigma) in meters.

@note Only valid with modem firmware v1.3.2 or later.

§speed: f32

Horizontal speed in m/s.

§speed_accuracy: f32

Speed accuracy (1-sigma) in m/s.

@note Only valid with modem firmware v1.3.0 or later.

§vertical_speed: f32

Vertical speed in m/s. Positive is up.

@note Only valid with modem firmware v1.3.2 or later.

§vertical_speed_accuracy: f32

Vertical speed accuracy (1-sigma) in m/s.

@note Only valid with modem firmware v1.3.2 or later.

§heading: f32

Heading of user movement in degrees.

§heading_accuracy: f32

Heading accuracy (1-sigma) in degrees.

@note Only valid with modem firmware v1.3.2 or later.

§datetime: nrf_modem_gnss_datetime

Date and time.

§pdop: f32

Position dilution of precision.

§hdop: f32

Horizontal dilution of precision.

§vdop: f32

Vertical dilution of precision.

§tdop: f32

Time dilution of precision.

§flags: u8

See @ref nrf_modem_gnss_pvt_flag_bitmask.

§sv: [nrf_modem_gnss_sv; 12]

Describes up to 12 of the space vehicles used for the measurement.

§execution_time: u32

Cumulative GNSS execution time since last start in milliseconds.

@note Only valid with modem firmware v1.3.2 or later.

Trait Implementations§

source§

impl Clone for nrf_modem_gnss_pvt_data_frame

source§

fn clone(&self) -> nrf_modem_gnss_pvt_data_frame

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 nrf_modem_gnss_pvt_data_frame

source§

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

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

impl Copy for nrf_modem_gnss_pvt_data_frame

Auto Trait Implementations§

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