DUNE: Uniform Navigational Environment  2019.02.0
Sensors::Imagenex852::Parser Class Reference

Detailed Description

Parser for Imagenex 852 High Frequency Echo Sounder Return Data.

Public Member Functions

 Parser (std::vector< char > &data_point_buffer)
 
bool parse (uint8_t byte)
 
unsigned getRange (void) const
 
double getProfileRange (void) const
 
unsigned getDataPointsCount (void) const
 

Constructor & Destructor Documentation

Sensors::Imagenex852::Parser::Parser ( std::vector< char > &  data_point_buffer)
inline

Constructor.

Member Function Documentation

unsigned Sensors::Imagenex852::Parser::getDataPointsCount ( void  ) const
inline

Retrieve number of data points of the last shot.

Returns
number of data points of the last shot.

Referenced by Sensors::Imagenex852::Task::onMain().

double Sensors::Imagenex852::Parser::getProfileRange ( void  ) const
inline

Retrieve the profile range of the last shot.

Returns
range of the last shot in meter.

Referenced by Sensors::Imagenex852::Task::onMain().

unsigned Sensors::Imagenex852::Parser::getRange ( void  ) const
inline

Retrieve the range of the last shot ([5, 50] meter).

Returns
range of the last shot in meter.

Referenced by Sensors::Imagenex852::Task::onMain().

bool Sensors::Imagenex852::Parser::parse ( uint8_t  byte)
inline

Parse one byte.

Parameters
bytebyte.
Returns
true if complete return data is available, false otherwise.

Referenced by Sensors::Imagenex852::Task::onMain().

Collaboration diagram for Sensors::Imagenex852::Parser:
Collaboration graph