pub struct DopBlock { /* private fields */ }Expand description
DOP_v2 block (Block ID 4001)
Dilution of Precision values.
Implementations§
Source§impl DopBlock
impl DopBlock
pub fn tow_seconds(&self) -> f64
pub fn tow_ms(&self) -> u32
pub fn wnc(&self) -> u16
Sourcepub fn num_satellites(&self) -> u8
pub fn num_satellites(&self) -> u8
Number of satellites used in the DOP computation.
Returns 0 when DOP information is unavailable. Use
Self::num_satellites_opt to distinguish unavailable from a real zero.
Sourcepub fn num_satellites_opt(&self) -> Option<u8>
pub fn num_satellites_opt(&self) -> Option<u8>
Number of satellites used in the DOP computation, or None when unavailable.
Sourcepub fn num_satellites_raw(&self) -> u8
pub fn num_satellites_raw(&self) -> u8
Raw NrSV field from the SBF block.
pub fn pdop(&self) -> f32
pub fn tdop(&self) -> f32
pub fn hdop(&self) -> f32
pub fn vdop(&self) -> f32
Sourcepub fn gdop_opt(&self) -> Option<f32>
pub fn gdop_opt(&self) -> Option<f32>
GDOP computed as sqrt(PDOP^2 + TDOP^2), or None when either input is unavailable.
pub fn pdop_raw(&self) -> u16
pub fn tdop_raw(&self) -> u16
pub fn hdop_raw(&self) -> u16
pub fn vdop_raw(&self) -> u16
pub fn hpl_m(&self) -> Option<f32>
pub fn vpl_m(&self) -> Option<f32>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DopBlock
impl RefUnwindSafe for DopBlock
impl Send for DopBlock
impl Sync for DopBlock
impl Unpin for DopBlock
impl UnsafeUnpin for DopBlock
impl UnwindSafe for DopBlock
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