[][src]Struct os_balloon::gps::Frame

pub struct Frame {
    fix_time: DateTime<Utc>,
    status: FixStatus,
    satellites: u8,
    latitude: f32,
    longitude: f32,
    altitude: f32,
    pdop: f32,
    hdop: f32,
    vdop: f32,
    speed: f32,
    course: f32,
}

This structure represents a GPS frame.

Fields

fix_time: DateTime<Utc>

Time of the current fix.

status: FixStatus

GPS fix status.

satellites: u8

Number of satellites connected.

latitude: f32

Latitude of the GPS antenna, in ° (degrees).

longitude: f32

Longitude of the GPS antenna, in ° (degrees).

altitude: f32

Altitude of the GPS antenna from sea level, in m.

pdop: f32

Position dilution of precision (3D).

hdop: f32

Horizontal dilution of precision (2D).

vdop: f32

Vertical dilution of precision (1D).

speed: f32

Speed of the velocity vector, in m/s.

course: f32

Course of the velocity vector, in ° (degrees).

Methods

impl Frame[src]

pub fn fix_time(&self) -> DateTime<Utc>[src]

Gets the time of the current fix.

pub fn status(&self) -> FixStatus[src]

Gets the GPS fix status.

pub fn is_valid(&self) -> bool[src]

Checks if the frame is from a valid fix.

pub fn satellites(&self) -> u8[src]

Gets the number of satellites connected.

pub fn latitude(&self) -> f32[src]

Gets the latitude of the GPS antenna, in ° (degrees).

pub fn longitude(&self) -> f32[src]

Gets the longitude of the GPS antenna, in ° (degrees).

pub fn altitude(&self) -> f32[src]

Gets the altitude of the GPS antenna from sea level, in m.

pub fn pdop(&self) -> f32[src]

Gets the position dilution of precision (3D).

pub fn hdop(&self) -> f32[src]

Gets the horizontal dilution of precision (2D).

pub fn vdop(&self) -> f32[src]

Gets the vertical dilution of precision (1D).

pub fn speed(&self) -> f32[src]

Gets the speed of the velocity vector, in m/s.

pub fn course(&self) -> f32[src]

Gets the course of the velocity vector, in ° (degrees).

Trait Implementations

impl Clone for Frame[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Frame[src]

impl Debug for Frame[src]

Auto Trait Implementations

impl Send for Frame

impl Sync for Frame

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Erased for T[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any
[src]