Expand description
Environment ports and the resolved sample.
Magnetic model, current atlas, wind forecast and deviation table all answer
a question for a place and time. The choice of model (WMM or IGRF, tidal
atlas or GRIB, swung table or Smith coefficients) is not the kernel’s; the
kernel defines the ports (MagneticModel, CurrentModel,
WindModel, TideModel, LeewayModel, CompassModel) and the
answer types (MagneticField, Current, Wind, height of tide as a
Distance above chart datum).
An EnvironmentSample holds the answers resolved for one point and
instant, for calculations that must not know the source. No port is
implemented here; implementations live in kinavis or in satellite crates
with the model data.
The compass model sits here because it is used together with the magnetic one: variation from the field, deviation from the ship’s magnetism, together converting compass to true.
Structs§
- Current
- Current: set and drift.
- Environment
Sample - Environment resolved for one point and instant.
- Magnetic
Field - Earth’s magnetic field at a point: north, east, down components in nT.
- Vessel
Motion - Motion through the water, as input to a leeway model.
- Wind
- True wind: direction from and speed.
Constants§
- MAX_
FIELD_ NANOTESLA - Maximum magnitude of a field component, nT.
Traits§
- Compass
Model - Ship’s magnetism as compass deviation.
- Current
Model - Current: constant, tidal, GRIB, ocean model.
- Leeway
Model - Leeway model for a hull.
- Magnetic
Model - Earth’s magnetic field: WMM, IGRF, compass rose, constant.
- Tide
Model - Tide: tables, harmonic prediction, gauge.
- Wind
Model - True wind: forecast, observation, constant.