pub struct PvtCartesianBlock {
pub time_system: u8,
pub datum: u8,
pub wa_corr_info: u8,
pub reference_id: u16,
pub signal_info: u32,
pub alert_flag: u8,
pub nr_bases: u8,
/* private fields */
}Expand description
PVTCartesian_v2 block (Block ID 4006)
Position, velocity, and time in ECEF Cartesian coordinates.
Fields§
§time_system: u8§datum: u8§wa_corr_info: u8§reference_id: u16§signal_info: u32§alert_flag: u8§nr_bases: u8Implementations§
Source§impl PvtCartesianBlock
impl PvtCartesianBlock
pub fn tow_seconds(&self) -> f64
pub fn tow_ms(&self) -> u32
pub fn wnc(&self) -> u16
pub fn mode(&self) -> PvtMode
pub fn error(&self) -> PvtError
pub fn has_fix(&self) -> bool
pub fn x_m(&self) -> Option<f64>
pub fn y_m(&self) -> Option<f64>
pub fn z_m(&self) -> Option<f64>
pub fn vx_mps(&self) -> Option<f32>
pub fn vy_mps(&self) -> Option<f32>
pub fn vz_mps(&self) -> Option<f32>
Sourcepub fn num_satellites(&self) -> u8
pub fn num_satellites(&self) -> u8
Number of satellites used in the PVT computation.
Returns 0 when the SBF NrSV field is not available (255). 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 PVT 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.
Trait Implementations§
Source§impl Clone for PvtCartesianBlock
impl Clone for PvtCartesianBlock
Source§fn clone(&self) -> PvtCartesianBlock
fn clone(&self) -> PvtCartesianBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PvtCartesianBlock
impl Debug for PvtCartesianBlock
Auto Trait Implementations§
impl Freeze for PvtCartesianBlock
impl RefUnwindSafe for PvtCartesianBlock
impl Send for PvtCartesianBlock
impl Sync for PvtCartesianBlock
impl Unpin for PvtCartesianBlock
impl UnsafeUnpin for PvtCartesianBlock
impl UnwindSafe for PvtCartesianBlock
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