MAV'RIC
Public Member Functions
Sonar Class Reference

Abstarct class for sonars. More...

#include <sonar.hpp>

Inheritance diagram for Sonar:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool init (void)=0
 Initialise the sensor.
virtual bool update (void)=0
 Main update function Reads new values from sensor.
virtual const float & last_update_us (void) const =0
 Get last update time in microseconds.
virtual const std::array
< float, 3 > & 
orientation_bf (void) const =0
 Get sensor orientation relative to the platform (in body frame)
virtual const float & distance (void) const =0
 Get latest distance measure.
virtual const float & velocity (void) const =0
 Get velocity estimate from consecutive measurements.
virtual const bool & healthy (void) const =0
 Indicates whether the measurements can be trusted.

Detailed Description

Abstarct class for sonars.


Member Function Documentation

virtual const float& Sonar::distance ( void  ) const [pure virtual]

Get latest distance measure.

Returns:
Value

Implemented in Sonar_sim, and Sonar_i2cxl.

Here is the caller graph for this function:

virtual const bool& Sonar::healthy ( void  ) const [pure virtual]

Indicates whether the measurements can be trusted.

Returns:
Value

Implemented in Sonar_sim, and Sonar_i2cxl.

Here is the caller graph for this function:

virtual bool Sonar::init ( void  ) [pure virtual]

Initialise the sensor.

Returns:
Success

Implemented in Sonar_sim, and Sonar_i2cxl.

virtual const float& Sonar::last_update_us ( void  ) const [pure virtual]

Get last update time in microseconds.

Returns:
Update time

Implemented in Sonar_sim, and Sonar_i2cxl.

Here is the caller graph for this function:

virtual const std::array<float, 3>& Sonar::orientation_bf ( void  ) const [pure virtual]

Get sensor orientation relative to the platform (in body frame)

Returns:
3D orientation

Implemented in Sonar_sim, and Sonar_i2cxl.

virtual bool Sonar::update ( void  ) [pure virtual]

Main update function Reads new values from sensor.

Returns:
Success

Implemented in Sonar_sim, and Sonar_i2cxl.

virtual const float& Sonar::velocity ( void  ) const [pure virtual]

Get velocity estimate from consecutive measurements.

Returns:
Value

Implemented in Sonar_sim, and Sonar_i2cxl.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines