DUNE: Uniform Navigational Environment  2020.01.0
DUNE::Navigation::UsblTools::Angles Struct Reference

Detailed Description

Angles data structure.

Static Public Member Functions

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

Public Attributes

fp32_t lbearing
 
fp32_t lelevation
 
fp32_t bearing
 
fp32_t elevation
 
fp32_t accuracy
 

Member Function Documentation

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

Decode an incoming data frame into an angles message.

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

References accuracy, bearing, DUNE::IMC::deserialize(), elevation, lbearing, lelevation, and size().

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

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

Encode an angles message into a data frame.

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

References accuracy, bearing, DUNE::Navigation::UsblTools::CODE_ANG, elevation, lbearing, lelevation, DUNE::IMC::serialize(), and size().

Referenced by DUNE::Navigation::UsblTools::Modem::encode().

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

Get size of frame.

Returns
size of angles structure.

Referenced by decode(), and encode().

Member Data Documentation

fp32_t DUNE::Navigation::UsblTools::Angles::accuracy
fp32_t DUNE::Navigation::UsblTools::Angles::bearing
fp32_t DUNE::Navigation::UsblTools::Angles::elevation
fp32_t DUNE::Navigation::UsblTools::Angles::lbearing
fp32_t DUNE::Navigation::UsblTools::Angles::lelevation
Collaboration diagram for DUNE::Navigation::UsblTools::Angles:
Collaboration graph