pub struct GpsNavBlock {Show 33 fields
pub prn: u8,
pub wn: u16,
pub ca_or_p_on_l2: u8,
pub ura: u8,
pub health: u8,
pub l2_data_flag: u8,
pub iodc: u16,
pub iode2: u8,
pub iode3: u8,
pub fit_int_flag: u8,
pub t_gd: f32,
pub t_oc: u32,
pub a_f2: f32,
pub a_f1: f32,
pub a_f0: f32,
pub c_rs: f32,
pub delta_n: f32,
pub m_0: f64,
pub c_uc: f32,
pub e: f64,
pub c_us: f32,
pub sqrt_a: f64,
pub t_oe: u32,
pub c_ic: f32,
pub omega_0: f64,
pub c_is: f32,
pub i_0: f64,
pub c_rc: f32,
pub omega: f64,
pub omega_dot: f32,
pub i_dot: f32,
pub wnt_oc: u16,
pub wnt_oe: u16,
/* private fields */
}Expand description
GPSNav block (Block ID 5891)
Decoded GPS navigation message (ephemeris).
Fields§
§prn: u8PRN number (1-32)
wn: u16GPS week number from ephemeris
ca_or_p_on_l2: u8C/A or P code on L2
ura: u8User Range Accuracy index
health: u8Satellite health
l2_data_flag: u8L2 data flag
iodc: u16Issue of Data Clock
iode2: u8Issue of Data Ephemeris (subframe 2)
iode3: u8Issue of Data Ephemeris (subframe 3)
fit_int_flag: u8Fit interval flag
t_gd: f32Group delay (seconds)
t_oc: u32Clock reference time (seconds)
a_f2: f32Clock drift rate (s/s^2)
a_f1: f32Clock drift (s/s)
a_f0: f32Clock bias (s)
c_rs: f32Sine harmonic radius correction (m)
delta_n: f32Mean motion difference (rad/s)
m_0: f64Mean anomaly at reference time (rad)
c_uc: f32Cosine harmonic latitude correction (rad)
e: f64Eccentricity
c_us: f32Sine harmonic latitude correction (rad)
sqrt_a: f64Square root of semi-major axis (m^0.5)
t_oe: u32Ephemeris reference time (seconds)
c_ic: f32Cosine harmonic inclination correction (rad)
omega_0: f64Right ascension at reference time (rad)
c_is: f32Sine harmonic inclination correction (rad)
i_0: f64Inclination angle at reference time (rad)
c_rc: f32Cosine harmonic radius correction (m)
omega: f64Argument of perigee (rad)
omega_dot: f32Rate of right ascension (rad/s)
i_dot: f32Rate of inclination (rad/s)
wnt_oc: u16Week number of t_oc
wnt_oe: u16Week number of t_oe
Implementations§
pub fn tow_seconds(&self) -> f64
pub fn tow_ms(&self) -> u32
pub fn wnc(&self) -> u16
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if ephemeris is healthy
Sourcepub fn semi_major_axis_m(&self) -> f64
pub fn semi_major_axis_m(&self) -> f64
Get semi-major axis in meters
Sourcepub fn iode_consistent(&self) -> bool
pub fn iode_consistent(&self) -> bool
Check if IODE values are consistent
Trait Implementations§
Source§fn clone(&self) -> GpsNavBlock
fn clone(&self) -> GpsNavBlock
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more