pub struct GpsAlmBlock {}Expand description
GPSAlm block (Block ID 5892)
Decoded GPS almanac data.
Fields§
§prn: u8PRN number (1-32)
e: f32Eccentricity
t_oa: u32Almanac reference time (s)
delta_i: f32Inclination offset (rad)
omega_dot: f32Rate of right ascension (rad/s)
sqrt_a: f32Square root of semi-major axis (m^0.5)
omega_0: f32Right ascension (rad)
omega: f32Argument of perigee (rad)
m_0: f32Mean anomaly (rad)
a_f1: f32Clock drift (s/s)
a_f0: f32Clock bias (s)
wn_a: u8Almanac week
as_config: u8Anti-spoofing config
health8: u8Health (8-bit)
health6: u8Health (6-bit)
Implementations§
Source§impl GpsAlmBlock
impl GpsAlmBlock
pub fn tow_seconds(&self) -> f64
pub fn tow_ms(&self) -> u32
pub fn wnc(&self) -> u16
Sourcepub fn eccentricity(&self) -> Option<f32>
pub fn eccentricity(&self) -> Option<f32>
Eccentricity (None if DNU)
Sourcepub fn semi_major_axis_m(&self) -> Option<f32>
pub fn semi_major_axis_m(&self) -> Option<f32>
Semi-major axis in meters (None if DNU)
Sourcepub fn clock_bias_s(&self) -> Option<f32>
pub fn clock_bias_s(&self) -> Option<f32>
Clock bias in seconds (None if DNU)
Trait Implementations§
Source§impl Clone for GpsAlmBlock
impl Clone for GpsAlmBlock
Source§fn clone(&self) -> GpsAlmBlock
fn clone(&self) -> GpsAlmBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpsAlmBlock
impl Debug for GpsAlmBlock
Auto Trait Implementations§
impl Freeze for GpsAlmBlock
impl RefUnwindSafe for GpsAlmBlock
impl Send for GpsAlmBlock
impl Sync for GpsAlmBlock
impl Unpin for GpsAlmBlock
impl UnsafeUnpin for GpsAlmBlock
impl UnwindSafe for GpsAlmBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more