Abstract class for IMU sensor adapter on Alora board.
More...
#include <AloraIMUSensorInterface.h>
Abstract class for IMU sensor adapter on Alora board.
virtual bool AloraIMUSensorBase::begin |
( |
uint8_t |
accAddress, |
|
|
uint8_t |
magAddress |
|
) |
| |
|
pure virtual |
- Parameters
-
accAddress | accelerometer and gyroscope (if any) I2C address |
magAddress | magnetometer I2C address |
- Returns
- true if IMU sensor is initialized successfully
-
false if IMU sensor is not initialized
Implemented in AloraIMULSM9DS1Adapter.
virtual float AloraIMUSensorBase::readAccelX |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readAccelY |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readAccelZ |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readGyroX |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readGyroY |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readGyroZ |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readMagHeading |
( |
| ) |
|
|
pure virtual |
Read heading value from magnetometer.
- Returns
- float heading in degree unit
Implemented in AloraIMULSM9DS1Adapter.
virtual float AloraIMUSensorBase::readMagX |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readMagY |
( |
| ) |
|
|
pure virtual |
virtual float AloraIMUSensorBase::readMagZ |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: