Skip to main content

Module wind

Module wind 

Source
Expand description

The vessel’s true wind, tracked from separate Signal K readings and resolved on demand.

Wind is not part of a fix – it carries no position, and [fix::FixBuilder] has no use for it – but it is a live reading the same way a fix’s own course and speed are, which is what makes it a poor fit for crate::Measurement::MaximumDraft’s own “arrives once, kept forever” treatment. WindTracker is the shape this actually wants: several separately timestamped readings, resolved to one answer only when asked, with a stale reading treated as no reading at all – the same discipline [fix::Sources] already keeps for a fix, applied here to a value that is not one.

Structs§

Wind
The vessel’s true wind, direct from the server’s own calculation or derived from apparent wind – see WindTracker::wind for which, and when.
WindTracker
Keeps the latest of each of the four wind readings Signal K can carry, each with when it arrived, and resolves them to one Wind on demand.

Constants§

DEFAULT_WIND_GOOD_FOR
How long a wind reading stays current by default.