DUNE: Uniform Navigational Environment
2019.02.0
|
Position data structure.
Static Public Member Functions | |
static void | decode (Position &frame, const std::vector< char > &data) |
static void | encode (Position &frame, std::vector< uint8_t > &data) |
static size_t | size (void) |
Public Attributes | |
fp32_t | x |
fp32_t | y |
fp32_t | z |
fp32_t | n |
fp32_t | e |
fp32_t | d |
uint8_t | accuracy |
|
inlinestatic |
Decode an incoming data frame into a position message.
[out] | frame | position structure. |
[in] | data | incoming frame. |
References accuracy, DUNE::Navigation::UsblTools::c_code, d, DUNE::IMC::deserialize(), e, n, size(), x, y, and z.
Referenced by DUNE::Navigation::UsblTools::Node::parse().
|
inlinestatic |
Encode a position message into a data frame.
[in] | frame | position structure. |
[out] | data | data frame. |
References accuracy, DUNE::Navigation::UsblTools::c_code, DUNE::Navigation::UsblTools::CODE_POS, d, e, n, DUNE::IMC::serialize(), size(), x, y, and z.
Referenced by DUNE::Navigation::UsblTools::Modem::encode().
|
inlinestatic |
uint8_t DUNE::Navigation::UsblTools::Position::accuracy |
fp32_t DUNE::Navigation::UsblTools::Position::d |
fp32_t DUNE::Navigation::UsblTools::Position::e |
fp32_t DUNE::Navigation::UsblTools::Position::n |
fp32_t DUNE::Navigation::UsblTools::Position::x |
fp32_t DUNE::Navigation::UsblTools::Position::y |
fp32_t DUNE::Navigation::UsblTools::Position::z |