Skip to main content

GpsCNavBlock

Struct GpsCNavBlock 

Source
pub struct GpsCNavBlock {
Show 37 fields pub prn: u8, pub flags: u8, pub wn: u16, pub health: u8, pub ura_ed: i8, pub t_op: u32, pub t_oe: u32, pub a: f64, pub a_dot: f64, pub delta_n: f32, pub delta_n_dot: f32, pub m_0: f64, pub e: f64, pub omega: f64, pub omega_0: f64, pub omega_dot: f64, pub i_0: f64, pub i_dot: f32, pub c_is: f32, pub c_ic: f32, pub c_rs: f32, pub c_rc: f32, pub c_us: f32, pub c_uc: f32, pub t_oc: u32, pub ura_ned0: i8, pub ura_ned1: u8, pub ura_ned2: u8, pub wn_op: u8, pub a_f2: f32, pub a_f1: f32, pub a_f0: f64, pub t_gd: f32, pub isc_l1ca: f32, pub isc_l2c: f32, pub isc_l5i5: f32, pub isc_l5q5: f32, /* private fields */
}
Expand description

GPSCNav block (Block ID 4042)

Decoded GPS CNAV navigation data from L2C and/or L5 signals. Contains ephemeris from MT10/11 and clock/ISC corrections from MT30.

Fields§

§prn: u8

PRN number (1-32)

§flags: u8

Flags bit field (alert, integrity, L2C phasing, L2C/L5 used)

§wn: u16

Week number (13 bits from MT10)

§health: u8

L1/L2/L5 signal health (3 bits from MT10)

§ura_ed: i8

Elevation-Dependent accuracy index (URA_ED)

§t_op: u32

Data predict time of week (seconds)

§t_oe: u32

Ephemeris reference time (seconds)

§a: f64

Semi-major axis (m)

§a_dot: f64

Change rate in semi-major axis (m/s)

§delta_n: f32

Mean motion difference (semi-circles/s)

§delta_n_dot: f32

Rate of mean motion difference (semi-circles/s^2)

§m_0: f64

Mean anomaly at reference time (semi-circles)

§e: f64

Eccentricity

§omega: f64

Argument of perigee (semi-circles)

§omega_0: f64

Right ascension at reference time (semi-circles)

§omega_dot: f64

Rate of right ascension (semi-circles/s)

§i_0: f64

Inclination angle at reference time (semi-circles)

§i_dot: f32

Rate of inclination (semi-circles/s)

§c_is: f32

Sine harmonic inclination correction (rad)

§c_ic: f32

Cosine harmonic inclination correction (rad)

§c_rs: f32

Sine harmonic radius correction (m)

§c_rc: f32

Cosine harmonic radius correction (m)

§c_us: f32

Sine harmonic latitude correction (rad)

§c_uc: f32

Cosine harmonic latitude correction (rad)

§t_oc: u32

Clock reference time (seconds)

§ura_ned0: i8

Non-Elevation-Dependent accuracy index 0

§ura_ned1: u8

Non-Elevation-Dependent accuracy change index

§ura_ned2: u8

Non-Elevation-Dependent accuracy change rate index

§wn_op: u8

Week number associated with t_op (modulo 256)

§a_f2: f32

Clock drift rate (s/s^2)

§a_f1: f32

Clock drift (s/s)

§a_f0: f64

Clock bias (s)

§t_gd: f32

Group delay differential (s)

§isc_l1ca: f32

Inter-Signal Correction for L1C/A (s)

§isc_l2c: f32

Inter-Signal Correction for L2C (s)

§isc_l5i5: f32

Inter-Signal Correction for L5I (s)

§isc_l5q5: f32

Inter-Signal Correction for L5Q (s)

Implementations§

Source§

impl GpsCNavBlock

Source

pub fn tow_seconds(&self) -> f64

Source

pub fn tow_ms(&self) -> u32

Source

pub fn wnc(&self) -> u16

Source

pub fn is_alert(&self) -> bool

Check if alert bit is set

Source

pub fn l2c_used(&self) -> bool

Check if L2C was used for decoding

Source

pub fn l5_used(&self) -> bool

Check if L5 was used for decoding

Source

pub fn is_healthy(&self) -> bool

Check if satellite is healthy

Source

pub fn group_delay_s(&self) -> Option<f32>

Group delay (None if DNU)

Source

pub fn isc_l1ca_s(&self) -> Option<f32>

ISC L1C/A (None if DNU)

Source

pub fn isc_l2c_s(&self) -> Option<f32>

ISC L2C (None if DNU)

Source

pub fn isc_l5i5_s(&self) -> Option<f32>

ISC L5I5 (None if DNU)

Source

pub fn isc_l5q5_s(&self) -> Option<f32>

ISC L5Q5 (None if DNU)

Trait Implementations§

Source§

impl Clone for GpsCNavBlock

Source§

fn clone(&self) -> GpsCNavBlock

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GpsCNavBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl SbfBlockParse for GpsCNavBlock

Source§

const BLOCK_ID: u16 = block_ids::GPS_CNAV

The block ID for this block type
Source§

fn parse(header: &SbfHeader, data: &[u8]) -> SbfResult<Self>

Parse block from data (starting after sync bytes) Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.