[−][src]Struct os_balloon::gps::Frame
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(&self) -> 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
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
[src]
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
[src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
[src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
[src]
T: Any,