Skip to main content

BdsCNav1Block

Struct BdsCNav1Block 

Source
pub struct BdsCNav1Block {
Show 35 fields pub prn_idx: u8, pub flags: u8, pub t_oe: u32, pub a: f64, pub a_dot: f64, pub delta_n0: f32, pub delta_n0_dot: f32, pub m_0: f64, pub e: f64, pub omega: f64, pub omega_0: f64, pub omega_dot: f32, 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 a_2: f32, pub a_1: f32, pub a_0: f64, pub t_op: u32, pub sisai_ocb: u8, pub sisai_oc12: u8, pub sisai_oe: u8, pub sismai: u8, pub health_if: u8, pub iode: u8, pub iodc: u16, pub isc_b1cd: f32, pub t_gd_b1cp: f32, pub t_gd_b2ap: f32, /* private fields */
}
Expand description

BDSCNav1 block (Block ID 4251)

BeiDou B-CNAV1 navigation data from B1C signal.

Fields§

§prn_idx: u8

PRN index within BeiDou constellation (1 for C01, etc.)

§flags: u8

Flags: bits 0-1 = satellite type (1: GEO, 2: IGSO, 3: MEO)

§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_n0: f32

Mean motion difference (semi-circles/s)

§delta_n0_dot: f32

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

§m_0: f64

Mean anomaly (semi-circles)

§e: f64

Eccentricity

§omega: f64

Argument of perigee (semi-circles)

§omega_0: f64

Longitude of ascending node (semi-circles)

§omega_dot: f32

Rate of right ascension (semi-circles/s)

§i_0: f64

Inclination angle (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)

§a_2: f32

Clock drift rate (s/s^2)

§a_1: f32

Clock drift (s/s)

§a_0: f64

Clock bias (s)

§t_op: u32

Time of week for data prediction (seconds)

§sisai_ocb: u8

Satellite orbit radius and clock bias accuracy index

§sisai_oc12: u8

Combined SISAI_oc1 and SISAI_oc2 (bits 0-2: oc2, bits 3-5: oc1)

§sisai_oe: u8

Satellite orbit along-track and cross-track accuracy index

§sismai: u8

Signal in space monitoring accuracy index

§health_if: u8

Health and integrity flags

§iode: u8

Issue of Data Ephemeris

§iodc: u16

Issue of Data Clock

§isc_b1cd: f32

Group delay between B1C data and pilot (s)

§t_gd_b1cp: f32

Group delay of B1C pilot (s)

§t_gd_b2ap: f32

Group delay of B2a pilot (s)

Implementations§

Source§

impl BdsCNav1Block

Source

pub fn tow_seconds(&self) -> f64

Source

pub fn tow_ms(&self) -> u32

Source

pub fn wnc(&self) -> u16

Source

pub fn satellite_type(&self) -> u8

Get satellite type (1: GEO, 2: IGSO, 3: MEO)

Source

pub fn is_geo(&self) -> bool

Check if satellite is GEO

Source

pub fn is_igso(&self) -> bool

Check if satellite is IGSO

Source

pub fn is_meo(&self) -> bool

Check if satellite is MEO

Source

pub fn is_healthy(&self) -> bool

Check if satellite is healthy (bits 6-7 of health_if == 0)

Source

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

ISC B1Cd (None if DNU)

Source

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

T_GD B1Cp (None if DNU)

Source

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

T_GD B2ap (None if DNU)

Trait Implementations§

Source§

impl Clone for BdsCNav1Block

Source§

fn clone(&self) -> BdsCNav1Block

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 BdsCNav1Block

Source§

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

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

impl SbfBlockParse for BdsCNav1Block

Source§

const BLOCK_ID: u16 = block_ids::BDS_CNAV1

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.