Skip to main content

Crate navcore_route_check

Crate navcore_route_check 

Source
Expand description

Checking a whole route, rather than one leg at a time.

Everything needed for this already existed on both sides. What was missing was the translation between them, and translation is where the decisions are:

  • Every leg is checked to the same tolerances. Defaults carries the mariner’s own standing numbers – the same safety contour the chart is drawn with – and every leg is checked against them, rather than a leg overriding the vessel’s standing corridor or safety contour: that per-leg richness has nowhere to live in Signal K’s own Route resource, and no client needs it – see routes::signalk’s own doc.
  • Distances are reported twice. Along the leg, which is what you steer by, and along the whole route, which is what you plan by.
  • Every leg is a rhumb line. The same reason routes::Route::distance_nm already measures one that way: it is what a leg drawn on a Mercator chart actually is.

Structs§

Defaults
The vessel’s standing settings, applied to every leg alike.
LegReport
What one leg of the route came back with.
RouteReport
What a whole route came back with.

Functions§

check_route
Checks every leg of a route against a chart.