List of all members.
Public Member Functions |
| Sonar_i2cxl (I2c &i2c, sonar_i2cxl_conf_t config=sonar_i2cxl_default_config()) |
| Constructor.
|
bool | init (void) |
| Initialise the sensor.
|
bool | update (void) |
| Main update function Reads new values from sensor.
|
const float & | last_update_us (void) const |
| Get last update time in microseconds.
|
const std::array< float, 3 > & | orientation_bf (void) const |
| Get sensor orientation relative to the platform (in body frame)
|
const float & | distance (void) const |
| Get latest distance measure.
|
const float & | velocity (void) const |
| Get velocity estimate from consecutive measurements.
|
const bool & | healthy (void) const |
| Indicates whether the measurements can be trusted.
|
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
i2c | Reference to I2C device |
config | Configuration |
Member Function Documentation
Get latest distance measure.
- Returns:
- Value
Implements Sonar.
Indicates whether the measurements can be trusted.
- Returns:
- Value
Implements Sonar.
Initialise the sensor.
- Returns:
- Success
Implements Sonar.
Get last update time in microseconds.
- Returns:
- Update time
Implements Sonar.
Get sensor orientation relative to the platform (in body frame)
- Returns:
- quaternion
Implements Sonar.
Main update function Reads new values from sensor.
- Returns:
- Success
Implements Sonar.
Get velocity estimate from consecutive measurements.
- Returns:
- Value
Implements Sonar.
The documentation for this class was generated from the following files:
- /home/travis/build/lis-epfl/MAVRIC_Library/drivers/sonar_i2cxl.hpp
- /home/travis/build/lis-epfl/MAVRIC_Library/drivers/sonar_i2cxl.cpp