DUNE: Uniform Navigational Environment
2019.02.1
|
This struct has methods to encode/decode several Reference IMC messages into single UamTxFrame/UamRxFrame IMC messages.
Static Public Member Functions | |
static void | encodeById (const IMC::Reference *msg, IMC::UamTxFrame *frame, uint8_t id) |
static IMC::Message * | decodeById (const IMC::UamRxFrame *frame, uint8_t id) |
static size_t | getPayloadSize (uint8_t num) |
Static Public Attributes | |
static const uint8_t | c_id |
|
inlinestatic |
Decode an UamRxFrame by System ID to retrieve a Reference message.
[in] | frame | UamRxFrame pointer. |
[in] | id | System ID. |
References DUNE::IMC::UamRxFrame::data.
|
inlinestatic |
Encode a Reference message to a UamTxFrame by System ID.
[in] | msg | Reference pointer. |
[out] | frame | UamTxFrame pointer. |
[in] | id | System ID. |
References DUNE::IMC::UamTxFrame::data.
|
inlinestatic |
Get payload size by number of Reference messages.
References c_id, DUNE::IMC::UamTxFrame::data, DUNE::IMC::UamRxFrame::data, DUNE::IMC::deserialize(), DUNE::IMC::Reference::FLAG_LOCATION, DUNE::IMC::Reference::FLAG_RADIUS, DUNE::IMC::Reference::FLAG_Z, DUNE::IMC::Reference::flags, DUNE::IMC::Message::getDestination(), DUNE::IMC::Reference::lat, DUNE::IMC::Reference::lon, DUNE::IMC::Reference::radius, DUNE::IMC::serialize(), DUNE::IMC::Message::setDestination(), DUNE::IMC::DesiredZ::value, DUNE::IMC::Reference::z, and DUNE::IMC::Z_DEPTH.
|
static |
Code to identify Reference.
Referenced by getPayloadSize().