[][src]Struct mynewt::hw::sensor::sensor_geolocation_data

#[repr(C, packed)]pub struct sensor_geolocation_data {
    pub sgd_latitude: f64,
    pub sgd_longitude: f64,
    pub sgd_altitude: f64,
    pub sgd_latitude_is_valid: u8,
    pub sgd_longitude_is_valid: u8,
    pub sgd_altitude_is_valid: u8,
}

Represents a GPS Geolocation. TODO: Must sync with libs/custom_sensor/include/custom_sensor/custom_sensor.h

Fields

sgd_latitude: f64

Latitude (degrees)

sgd_longitude: f64

Longitude (degrees)

sgd_altitude: f64

Altitude (metres)

sgd_latitude_is_valid: u8

1 if latitude is valid

sgd_longitude_is_valid: u8

1 if longitude is valid

sgd_altitude_is_valid: u8

1 if altitude is valid

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.