Payload¶
struct nmeasim::core::ais::Payload ยท Library API
A packed payload ready for a sentence: the armoured characters and the fill bits.
#include <nmeasim/core/ais/sixbit.hpp>
Declared in src/core/include/nmeasim/core/ais/sixbit.hpp (line 89)
text holds ceil(n / 6) characters for a message of n bits and fill_bits is 6 * text.size() - n.
See also
frame_payloadto split it into sentences.
Summary¶
Public data members
| Name | Description |
|---|---|
text |
Armoured six-bit characters for the payload field of VDO and VDM, each in 0-W or `-w; empty for a message of no bits. |
fill_bits |
Zero bits appended to complete the last character, in [0, 5]; sent in the last field of the last sentence. |
Public data members¶
text¶
std::string text
Armoured six-bit characters for the payload field of VDO and VDM, each in 0-W or `-w; empty for a message of no bits.
Declared in src/core/include/nmeasim/core/ais/sixbit.hpp:92
fill_bits¶
int fill_bits{0}
Zero bits appended to complete the last character, in [0, 5]; sent in the last field of the last sentence.
Declared in src/core/include/nmeasim/core/ais/sixbit.hpp:95