Skip to main content

GloNavBlock

Struct GloNavBlock 

Source
pub struct GloNavBlock {
Show 27 fields pub svid: u8, pub freq_nr: i8, pub x_km: f64, pub y_km: f64, pub z_km: f64, pub dx_kmps: f32, pub dy_kmps: f32, pub dz_kmps: f32, pub ddx_kmps2: f32, pub ddy_kmps2: f32, pub ddz_kmps2: f32, pub gamma: f32, pub tau: f32, pub dtau: f32, pub t_oe: u32, pub wn_toe: u16, pub p1: u8, pub p2: u8, pub e_age: u8, pub b_health: u8, pub tb: u16, pub m_type: u8, pub p_mode: u8, pub l_health: u8, pub p4: u8, pub n_t: u16, pub f_t: u16, /* private fields */
}
Expand description

GLONav block (Block ID 4004)

Decoded GLONASS navigation message (ephemeris). GLONASS uses a different ephemeris model based on position/velocity/acceleration.

Fields§

§svid: u8

SVID (38-61 for GLONASS)

§freq_nr: i8

Frequency number (-7 to +6)

§x_km: f64

X position (km)

§y_km: f64

Y position (km)

§z_km: f64

Z position (km)

§dx_kmps: f32

X velocity (km/s)

§dy_kmps: f32

Y velocity (km/s)

§dz_kmps: f32

Z velocity (km/s)

§ddx_kmps2: f32

X acceleration (km/s^2)

§ddy_kmps2: f32

Y acceleration (km/s^2)

§ddz_kmps2: f32

Z acceleration (km/s^2)

§gamma: f32

Frequency bias (gamma)

§tau: f32

Clock bias (tau, seconds)

§dtau: f32

Time difference L1-L2 (dtau, seconds)

§t_oe: u32

Ephemeris reference time

§wn_toe: u16

Ephemeris reference week

§p1: u8

Time interval P1

§p2: u8

Odd/even flag P2

§e_age: u8

Age of data E

§b_health: u8

Health flag B

§tb: u16

Frame time tb (15-minute intervals)

§m_type: u8

Satellite type M

§p_mode: u8

P1/P2 mode P

§l_health: u8

Health flag l

§p4: u8

Data updated flag P4

§n_t: u16

Day number N_T

§f_t: u16

Accuracy F_T

Implementations§

Source§

impl GloNavBlock

Source

pub fn tow_seconds(&self) -> f64

Source

pub fn tow_ms(&self) -> u32

Source

pub fn wnc(&self) -> u16

Source

pub fn slot(&self) -> u8

Get slot number (1-24)

Source

pub fn position_m(&self) -> (f64, f64, f64)

Get position in meters

Source

pub fn velocity_mps(&self) -> (f64, f64, f64)

Get velocity in m/s

Source

pub fn acceleration_mps2(&self) -> (f64, f64, f64)

Get acceleration in m/s^2

Source

pub fn is_healthy(&self) -> bool

Check if satellite is healthy

Trait Implementations§

Source§

impl Clone for GloNavBlock

Source§

fn clone(&self) -> GloNavBlock

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 GloNavBlock

Source§

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

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

impl SbfBlockParse for GloNavBlock

Source§

const BLOCK_ID: u16 = block_ids::GLO_NAV

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.