pub struct NavigationSnapshot { /* private fields */ }Expand description
Vessel state at an instant, as far as the producer knows.
Every field except the stale flag is optional: before the first fix nothing is known; an intake provides no heading. Consumers show missing fields as unknown.
Implementations§
Sourcepub const fn with_position(
self,
position: Observed<Position, Distance>,
source: PositionSource,
) -> Self
pub const fn with_position( self, position: Observed<Position, Distance>, source: PositionSource, ) -> Self
Sets position and source.
Sourcepub const fn with_ground_track(self, track: GroundTrack) -> Self
pub const fn with_ground_track(self, track: GroundTrack) -> Self
Sets course and speed over ground.
Sourcepub const fn with_heading(
self,
heading: TrueCourse,
sigma: Option<Angle>,
) -> Self
pub const fn with_heading( self, heading: TrueCourse, sigma: Option<Angle>, ) -> Self
Sets heading and its uncertainty.
Sourcepub const fn with_horizontal_error(self, ellipse: ErrorEllipse) -> Self
pub const fn with_horizontal_error(self, ellipse: ErrorEllipse) -> Self
Sets the position error ellipse.
Sourcepub const fn with_integrity(self, integrity: NavigationIntegrity) -> Self
pub const fn with_integrity(self, integrity: NavigationIntegrity) -> Self
Sets the producer’s integrity verdict.
Sourcepub const fn with_age(self, age: Option<Duration>, stale: bool) -> Self
pub const fn with_age(self, age: Option<Duration>, stale: bool) -> Self
Sets position age and staleness.
Sourcepub const fn position(&self) -> Option<&Observed<Position, Distance>>
pub const fn position(&self) -> Option<&Observed<Position, Distance>>
Position with time and quality; None if unknown.
Sourcepub const fn source(&self) -> Option<PositionSource>
pub const fn source(&self) -> Option<PositionSource>
Position source, if any.
Sourcepub const fn ground_track(&self) -> Option<GroundTrack>
pub const fn ground_track(&self) -> Option<GroundTrack>
Course and speed over ground, if known.
Sourcepub const fn heading(&self) -> Option<TrueCourse>
pub const fn heading(&self) -> Option<TrueCourse>
Heading (bow direction, distinct from COG), if known.
Sourcepub const fn heading_sigma(&self) -> Option<Angle>
pub const fn heading_sigma(&self) -> Option<Angle>
1σ heading uncertainty, if known.
Sourcepub const fn horizontal_error(&self) -> Option<ErrorEllipse>
pub const fn horizontal_error(&self) -> Option<ErrorEllipse>
1σ position error ellipse, if known.
Sourcepub const fn integrity(&self) -> Option<NavigationIntegrity>
pub const fn integrity(&self) -> Option<NavigationIntegrity>
Integrity, if assessed by the producer (an intake reports a source, an estimator reports integrity).
Trait Implementations§
Auto Trait Implementations§
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