DUNE: Uniform Navigational Environment  2016.09.0
Sensors::Imagenex881A::Parser Class Reference

Detailed Description

Parser for the Imagenex 881A response frame.

Public Member Functions

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

Constructor & Destructor Documentation

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

Constructor.

Member Function Documentation

unsigned Sensors::Imagenex881A::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::Imagenex881A::Task::onMain().

float Sensors::Imagenex881A::Parser::getHeadPosition ( bool  invert) const
inline

Get head position.

Returns
head position.

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

float Sensors::Imagenex881A::Parser::getProfileRange ( void  ) const
inline

Get profile range.

Returns
profile range.

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

uint8_t Sensors::Imagenex881A::Parser::getRange ( void  ) const
inline

Get range.

Returns
maximum range.

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

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

Parse header.

Parameters
[in]byteframe byte.
Returns
true if complete return data is available, false otherwise.

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

Collaboration diagram for Sensors::Imagenex881A::Parser:
Collaboration graph