DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Navigation::UsblTools::Fix Struct Reference

Detailed Description

Fix data structure.

Static Public Member Functions

static void decode (Fix &frame, const std::vector< char > &data)
 
static void encode (Fix &frame, std::vector< uint8_t > &data)
 
static size_t size (void)
 

Public Attributes

fp64_t lat
 
fp64_t lon
 
fp32_t z
 
uint8_t z_units
 
fp32_t accuracy
 

Member Function Documentation

static void DUNE::Navigation::UsblTools::Fix::decode ( Fix frame,
const std::vector< char > &  data 
)
inlinestatic

Decode an incoming data frame into a fix message.

Parameters
[out]framefix structure.
[in]dataincoming frame.

References accuracy, DUNE::IMC::deserialize(), lat, lon, size(), z, and z_units.

Referenced by DUNE::Navigation::UsblTools::Node::parse().

static void DUNE::Navigation::UsblTools::Fix::encode ( Fix frame,
std::vector< uint8_t > &  data 
)
inlinestatic

Encode a fix message into a data frame.

Parameters
[in]framefix structure.
[out]datadata frame.

References accuracy, DUNE::Navigation::UsblTools::CODE_FIX, lat, lon, DUNE::IMC::serialize(), size(), z, and z_units.

Referenced by DUNE::Navigation::UsblTools::Node::consume(), DUNE::Navigation::UsblTools::Modem::encode(), and DUNE::Navigation::UsblTools::Node::run().

static size_t DUNE::Navigation::UsblTools::Fix::size ( void  )
inlinestatic

Get size of frame.

Returns
size of fix structure.

Referenced by decode(), and encode().

Member Data Documentation

fp32_t DUNE::Navigation::UsblTools::Fix::accuracy
fp32_t DUNE::Navigation::UsblTools::Fix::z
Collaboration diagram for DUNE::Navigation::UsblTools::Fix:
Collaboration graph