AisStatic¶
struct nmeasim::core::model::AisStatic ยท Library API
Static data of the own vessel for the AIS messages, plus the message options.
#include <nmeasim/core/model/vessel_state.hpp>
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp (line 205)
The AIS encoder clamps the numbers to the range of their fields and truncates the texts, as the member comments say.
See also
- ITU-R M.1371-5, Annex 8, messages 1 and 5.
Summary¶
Public data members
| Name | Description |
|---|---|
mmsi |
Maritime Mobile Service Identity, nine digits; also forms the default Signal K context. |
imo_number |
IMO ship identification number, 0 when the vessel has none. |
name |
Vessel name, at most 20 characters of the AIS six-bit alphabet; longer names are truncated. |
call_sign |
Call sign, at most 7 characters; longer ones are truncated. |
ship_type |
Type of ship and cargo code, in [0, 255]; 37 is a pleasure craft, 36 a sailing vessel. |
dimension_to_bow_m |
Distance from the reference position (the GNSS antenna) to the bow, sent in whole metres up to 511. |
dimension_to_stern_m |
Distance from the reference position to the stern, sent in whole metres up to 511. |
dimension_to_port_m |
Distance from the reference position to port, sent in whole metres up to 63. |
dimension_to_starboard_m |
Distance from the reference position to starboard, sent in whole metres up to 63. |
draught_m |
Maximum present static draught, sent in tenths of a metre up to 25.5 m. |
destination |
Voyage destination, at most 20 characters; empty for none. |
navigation_status |
Navigational status code in [0, 15]: 0 is "under way using engine", 8 "under way sailing". |
position_report_type |
Message type of the position report: 1 scheduled, 2 assigned, 3 in response to an interrogation; any other value is sent as 1. |
Public data members¶
mmsi¶
std::uint32_t mmsi{239000001}
Maritime Mobile Service Identity, nine digits; also forms the default Signal K context.
The default carries the Greek maritime identification digits 239.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:208
imo_number¶
std::uint32_t imo_number{0}
IMO ship identification number, 0 when the vessel has none.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:210
name¶
std::string name{"NMEA SIMULATOR X"}
Vessel name, at most 20 characters of the AIS six-bit alphabet; longer names are truncated.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:213
call_sign¶
std::string call_sign{"SIMX"}
Call sign, at most 7 characters; longer ones are truncated.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:215
ship_type¶
int ship_type{37}
Type of ship and cargo code, in [0, 255]; 37 is a pleasure craft, 36 a sailing vessel.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:218
dimension_to_bow_m¶
double dimension_to_bow_m{12.0}
Distance from the reference position (the GNSS antenna) to the bow, sent in whole metres up to 511.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:221
dimension_to_stern_m¶
double dimension_to_stern_m{4.0}
Distance from the reference position to the stern, sent in whole metres up to 511.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:223
dimension_to_port_m¶
double dimension_to_port_m{3.0}
Distance from the reference position to port, sent in whole metres up to 63.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:225
dimension_to_starboard_m¶
double dimension_to_starboard_m{3.0}
Distance from the reference position to starboard, sent in whole metres up to 63.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:227
draught_m¶
double draught_m{1.8}
Maximum present static draught, sent in tenths of a metre up to 25.5 m.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:229
destination¶
std::string destination
Voyage destination, at most 20 characters; empty for none.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:231
navigation_status¶
int navigation_status{0}
Navigational status code in [0, 15]: 0 is "under way using engine", 8 "under way sailing".
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:234
position_report_type¶
int position_report_type{1}
Message type of the position report: 1 scheduled, 2 assigned, 3 in response to an interrogation; any other value is sent as 1.
Declared in src/core/include/nmeasim/core/model/vessel_state.hpp:237