[][src]Struct os_balloon::gps::Gps

pub struct Gps {
    latest_data: Option<Frame>,
}

GPS information structure.

Fields

latest_data: Option<Frame>

Methods

impl Gps[src]

pub fn initialize(&mut self) -> Result<(), Error>[src]

Initializes the GPS.

pub fn is_on(&self) -> Result<bool, Error>[src]

Checks if the GPS is on.

pub fn turn_on(&self) -> Result<(), Error>[src]

Turns the GPS on.

pub fn turn_off(&self) -> Result<(), Error>[src]

Turns the GPS off.

fn enter_airborne_1g_mode(serial: &mut Serial) -> Result<(), Error>[src]

Enters airborne (<1g) GPS mode.

pub fn latest_data(&self) -> Option<Frame>[src]

Gets the latest GPS data.

fn parse_frame(line: Result<String, Error>) -> Result<Frame, Error>[src]

Parses a GPS frame.

Trait Implementations

impl Default for Gps[src]

impl Drop for Gps[src]

impl Debug for Gps[src]

Auto Trait Implementations

impl Send for Gps

impl Sync for Gps

Blanket Implementations

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

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

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> UnsafeAny for T where
    T: Any
[src]