DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Navigation::UsblTools Class Reference

Detailed Description

UsblTools provides converter methods for IMC's USBL messages.

Author
José Braga.

Classes

struct  Angles
 
struct  Fix
 
class  Modem
 
class  Node
 
struct  Position
 
class  Target
 

Public Types

Static Public Member Functions

static bool toNode (uint8_t code)
 
static IMC::UsblFixExtended toFix (const IMC::UsblPositionExtended &usbl, const IMC::GpsFix &gps)
 
static IMC::UsblFixExtended toFix (const IMC::UsblPositionExtended &usbl, const IMC::EstimatedState &state)
 
static IMC::UsblFixExtended toFix (const IMC::UsblPositionExtended &usbl, double lat, double lon, float z, IMC::ZUnits z_units)
 

Static Public Attributes

static const uint8_t c_mask_start
 
static const uint8_t c_mask_fix
 
static const uint8_t c_fsize_req
 
static const uint8_t c_target_mask
 
static const uint8_t c_code
 
static const uint16_t c_requests_interval
 
static const uint8_t c_max_comm_timeout
 

Member Enumeration Documentation

Enumerator
CODE_REQ 
CODE_RPL 
CODE_FIX 
CODE_POS 
CODE_ANG 
Enumerator
REQ_START 
REQ_PERIOD 

Member Function Documentation

static IMC::UsblFixExtended DUNE::Navigation::UsblTools::toFix ( const IMC::UsblPositionExtended usbl,
const IMC::GpsFix gps 
)
inlinestatic
static bool DUNE::Navigation::UsblTools::toNode ( uint8_t  code)
inlinestatic

This method checks if code is intended for nodes or USBL modem.

Parameters
[in]codemessage code identifier.
Returns
true if message is for node, false if it's for modem.

Member Data Documentation

const uint8_t DUNE::Navigation::UsblTools::c_code
static

Code placement in received frame messages.

const uint8_t DUNE::Navigation::UsblTools::c_fsize_req
static

Request frame: size of frame.Size of frame: request.

const uint8_t DUNE::Navigation::UsblTools::c_mask_fix
static
const uint8_t DUNE::Navigation::UsblTools::c_mask_start
static

Request frame: start/stop mask.

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

const uint8_t DUNE::Navigation::UsblTools::c_max_comm_timeout
static

Number of communication timeouts before considering that a system has failed.

const uint16_t DUNE::Navigation::UsblTools::c_requests_interval
static

Minimum time interval between consecutive requests from node.

const uint8_t DUNE::Navigation::UsblTools::c_target_mask
static

Node or modem destination identifier mask.

Collaboration diagram for DUNE::Navigation::UsblTools:
Collaboration graph