pub struct SatelliteMeasurement {
pub sat_id: SatelliteId,
pub signal_type: SignalType,
pub obs_info: u8,
/* private fields */
}Expand description
Processed satellite measurement from MeasEpoch
Fields§
§sat_id: SatelliteIdSatellite ID
signal_type: SignalTypeSignal type
obs_info: u8Observation info flags
Implementations§
Source§impl SatelliteMeasurement
impl SatelliteMeasurement
Sourcepub fn cn0_dbhz_opt(&self) -> Option<f64>
pub fn cn0_dbhz_opt(&self) -> Option<f64>
Get CN0 in dB-Hz, or None when the raw C/N0 field is unavailable.
Sourcepub fn doppler_hz(&self) -> f64
pub fn doppler_hz(&self) -> f64
Get Doppler in Hz (scaled).
Returns 0.0 when the absolute Doppler field is unavailable. Use
Self::doppler_hz_opt to distinguish unavailable from a real zero.
Sourcepub fn doppler_hz_opt(&self) -> Option<f64>
pub fn doppler_hz_opt(&self) -> Option<f64>
Get Doppler in Hz (scaled), or None when unavailable.
Sourcepub fn doppler_raw(&self) -> i32
pub fn doppler_raw(&self) -> i32
Get raw Doppler value
Sourcepub fn lock_time_seconds(&self) -> f64
pub fn lock_time_seconds(&self) -> f64
Get lock time in seconds.
Returns 0.0 when the lock time field is unavailable. Use
Self::lock_time_seconds_opt to distinguish unavailable from a real zero.
Sourcepub fn lock_time_seconds_opt(&self) -> Option<f64>
pub fn lock_time_seconds_opt(&self) -> Option<f64>
Get lock time in seconds, or None when unavailable.
Sourcepub fn lock_time_raw(&self) -> u16
pub fn lock_time_raw(&self) -> u16
Get raw lock time value
Sourcepub fn half_cycle_resolved(&self) -> bool
pub fn half_cycle_resolved(&self) -> bool
Check if half-cycle ambiguity is resolved.
Per SBF, bit 2 is set when a half-cycle ambiguity is present.
Sourcepub fn smoothing_active(&self) -> bool
pub fn smoothing_active(&self) -> bool
Check if smoothing is active.
Per SBF, bit 0 indicates code smoothing.
Trait Implementations§
Source§impl Clone for SatelliteMeasurement
impl Clone for SatelliteMeasurement
Source§fn clone(&self) -> SatelliteMeasurement
fn clone(&self) -> SatelliteMeasurement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more