pub struct GnssFix { /* private fields */ }Expand description
Satellite fix: position, time, method and other receiver data.
Built via GnssFix::builder: most fields are optional and filled
differently by different sentences.
Implementations§
Source§impl GnssFix
impl GnssFix
Sourcepub const fn builder(
taken_at: Instant<Utc>,
position: Position,
) -> GnssFixBuilder
pub const fn builder( taken_at: Instant<Utc>, position: Position, ) -> GnssFixBuilder
Starts a fix from time and position, the two mandatory fields.
With nothing else set it is an autonomous fix.
Sourcepub const fn course_over_ground(&self) -> Option<TrueCourse>
pub const fn course_over_ground(&self) -> Option<TrueCourse>
Course over ground, if reported.
Receivers omit it when stationary, where it is noise.
Sourcepub const fn speed_over_ground(&self) -> Option<Speed>
pub const fn speed_over_ground(&self) -> Option<Speed>
Speed over ground, if reported.
Sourcepub const fn quality(&self) -> &GnssQuality
pub const fn quality(&self) -> &GnssQuality
Quality.
Sourcepub fn horizontal_accuracy(&self) -> Option<Distance>
pub fn horizontal_accuracy(&self) -> Option<Distance>
Estimated 1σ horizontal error: HDOP × nominal UERE for the fix type.
None without HDOP or for non-satellite positions. A nominal estimate,
not a measurement; see GnssFix::horizontal_accuracy_with to supply a
UERE.
Sourcepub fn horizontal_accuracy_with(&self, uere: Distance) -> Option<Distance>
pub fn horizontal_accuracy_with(&self, uere: Distance) -> Option<Distance>
1σ horizontal error for a given 1σ range error: HDOP × UERE.
None without HDOP.
Sourcepub fn observed_position(&self) -> Observed<Position, Distance>
pub fn observed_position(&self) -> Observed<Position, Distance>
Position as an Observed value, for source-agnostic use cases.
Status by fix type: satellite fix Valid; receiver estimate, manual or
simulated Suspect; no fix Invalid. Uncertainty is
GnssFix::horizontal_accuracy where available.