Wind¶
struct nmeasim::core::model::Wind · Library API
True and apparent wind measured on board.
#include <nmeasim/core/model/vessel_state.hpp>
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp (line 140)
The apparent values are derived from the true wind and the vessel's motion by physics::apparent_wind on every tick.
Summary¶
Public member functions
| Name | Description |
|---|---|
true_angle_relative_deg() |
Returns the angle the true wind comes from relative to the bow. |
Public data members
| Name | Description |
|---|---|
true_direction_deg |
Direction the true wind blows from, in degrees true, in [0, 360). |
true_speed_kn |
True wind speed, not negative; sent in MWD and the true MWV. |
apparent_angle_deg |
Angle the apparent wind comes from relative to the bow, clockwise, in [0, 360). |
apparent_speed_kn |
Apparent wind speed, sent in the relative MWV. |
Public member functions¶
true_angle_relative_deg()¶
double true_angle_relative_deg(double heading_true_deg) const noexcept
Returns the angle the true wind comes from relative to the bow.
Parameters
| Name | Type | Description |
|---|---|---|
heading_true_deg |
double |
Heading of the bow in degrees true. |
Returns double: The angle clockwise from the bow, in [0, 360).
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:154 · defined in src/core/src/model/vessel_state.cpp:23
Public data members¶
true_direction_deg¶
double true_direction_deg{0.0}
Direction the true wind blows from, in degrees true, in [0, 360).
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:142
true_speed_kn¶
double true_speed_kn{0.0}
True wind speed, not negative; sent in MWD and the true MWV.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:144
apparent_angle_deg¶
double apparent_angle_deg{0.0}
Angle the apparent wind comes from relative to the bow, clockwise, in [0, 360).
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:146
apparent_speed_kn¶
double apparent_speed_kn{0.0}
Apparent wind speed, sent in the relative MWV.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:148