DUNE: Uniform Navigational Environment  2016.09.0
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

enum  Codes {
  CODE_REQ, CODE_RPL, CODE_FIX, CODE_POS,
  CODE_ANG
}
 
enum  RequestIndexes { REQ_START, REQ_PERIOD }
 

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 IMC::UsblFixExtended DUNE::Navigation::UsblTools::toFix ( const IMC::UsblPositionExtended usbl,
const IMC::EstimatedState state 
)
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.

References c_target_mask.

Member Data Documentation

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

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

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

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

Request frame: absolute fix mask.

Referenced by DUNE::Navigation::UsblTools::Node::parse(), and DUNE::Navigation::UsblTools::Modem::parse().

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

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

Referenced by DUNE::Navigation::UsblTools::Target::hasFailed(), DUNE::Navigation::UsblTools::Node::Node(), and DUNE::Navigation::UsblTools::Node::parse().

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

Minimum time interval between consecutive requests from node.

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

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

Node or modem destination identifier mask.

Referenced by toNode().

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