RoverQMC5883L is a class that is inherited from RoverSensor abstract class. RoverQMC5883L class contains member functions and variables to set up and read from QMC5883L bearing sensor that is embedded on the rover.
More...
#include <rover_qmc5883l.hpp>
|
template<typename T > |
T | MINIMUM_ (const T &a, const T &b) |
| Inline macro to find minimum of two values regardles of their types (template). More...
|
|
template<typename T > |
T | MAXIMUM_ (const T &a, const T &b) |
| Inline macro to find maximum of two values regardles of their types (template). More...
|
|
RoverQMC5883L is a class that is inherited from RoverSensor abstract class. RoverQMC5883L class contains member functions and variables to set up and read from QMC5883L bearing sensor that is embedded on the rover.
rover::RoverQMC5883L::RoverQMC5883L |
( |
| ) |
|
|
explicit |
rover::RoverQMC5883L::~RoverQMC5883L |
( |
| ) |
|
void rover::RoverQMC5883L::calibrate |
( |
void |
| ) |
const |
Starts calibration for the bearing sensor.
- Returns
- void
int rover::RoverQMC5883L::getQMC5883LAddress |
( |
void |
| ) |
|
Returns the private attribute QMC588L_ADDRESS.
- Returns
- address Address to return
int rover::RoverQMC5883L::getQMC5883LCalibrationPeriod |
( |
void |
| ) |
|
Returns the QMC588L Calibration Duration.
- Returns
- period Period to return
float rover::RoverQMC5883L::getQMC5883LDeclinationAngle |
( |
void |
| ) |
|
Returns the QMC588L Declination angle.
- Returns
- angle Declination angle to return
void rover::RoverQMC5883L::initialize |
( |
void |
| ) |
|
|
virtual |
template<typename T >
T rover::RoverQMC5883L::MAXIMUM_ |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inlineprivate |
Inline macro to find maximum of two values regardles of their types (template).
- Parameters
-
a | Parameter 1 |
b | Parameter 2 |
- Returns
- maximum value
template<typename T >
T rover::RoverQMC5883L::MINIMUM_ |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inlineprivate |
Inline macro to find minimum of two values regardles of their types (template).
- Parameters
-
a | Parameter 1 |
b | Parameter 2 |
- Returns
- minimum value
float rover::RoverQMC5883L::read |
( |
void |
| ) |
|
|
virtual |
Reads the bearing value from Bearing sensor QMC5883L (float).
- Returns
- bearing_val in degrees (float).
Implements rover::RoverSensor.
void rover::RoverQMC5883L::setQMC5883LAddress |
( |
const int |
address | ) |
|
Sets the QMC588L Address.
- Parameters
-
- Returns
- void
void rover::RoverQMC5883L::setQMC5883LCalibrationPeriod |
( |
const int |
period | ) |
|
Sets the QMC588L Calibration Duration.
- Parameters
-
- Returns
- void
void rover::RoverQMC5883L::setQMC5883LDeclinationAngle |
( |
const float |
angle | ) |
|
Sets the QMC588L Declination angle.
- Parameters
-
angle | Declination angle to set |
- Returns
- void
int rover::RoverQMC5883L::CALIBRATION_DURATION |
|
private |
Calibration duration for compass sensor.
unsigned int rover::RoverQMC5883L::calibration_start |
|
mutableprivate |
Calibration variable for QMC5883L.
float rover::RoverQMC5883L::DECLINATION_ANGLE |
|
private |
Declination angle / correction factor for compass sensor.
int rover::RoverQMC5883L::i2c_qmc588l_fd |
|
private |
Private member attribute for I2C file descriptor.
int rover::RoverQMC5883L::QMC5883L_ADDRESS |
|
private |
Address for compass sensor.
int rover::RoverQMC5883L::ROVERQMC5883L_SETUP_ |
|
private |
int16_t rover::RoverQMC5883L::xMaxRaw |
|
private |
Calibration variable to hold the maximum of xRaw results.
int16_t rover::RoverQMC5883L::xMinRaw |
|
private |
Calibration variable to hold the minimum of xRaw results.
int16_t rover::RoverQMC5883L::yMaxRaw |
|
private |
Calibration variable to hold the maximum of yRaw results.
int16_t rover::RoverQMC5883L::yMinRaw |
|
private |
Calibration variable to hold the minimum of yRaw results.
The documentation for this class was generated from the following files: