bool AloraIMULSM9DS1Adapter::begin |
( |
uint8_t |
accAddress, |
|
|
uint8_t |
magAddress |
|
) |
| |
|
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
Implements AloraIMUSensorBase.
LSM9DS1 * AloraIMULSM9DS1Adapter::getIMUSensor |
( |
| ) |
|
Get pointer to LSM9DS1 object.
- Returns
- LSM9DS1* pointer to LSM9DS1 object
float AloraIMULSM9DS1Adapter::readAccelX |
( |
| ) |
|
|
virtual |
Read X axis value from accelerometer.
- Returns
- float X axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readAccelY |
( |
| ) |
|
|
virtual |
Read Y axis value from accelerometer.
- Returns
- float Y axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readAccelZ |
( |
| ) |
|
|
virtual |
Read Z axis value from accelerometer.
- Returns
- float Z axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readGyroX |
( |
| ) |
|
|
virtual |
Read X axis value from gyroscope.
- Returns
- float X axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readGyroY |
( |
| ) |
|
|
virtual |
Read Y axis value from gyroscope.
- Returns
- float Y axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readGyroZ |
( |
| ) |
|
|
virtual |
Read Z axis value from gyroscope.
- Returns
- float Z axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readMagHeading |
( |
| ) |
|
|
virtual |
Read heading value from magnetometer.
- Returns
- float heading in degree unit
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readMagX |
( |
| ) |
|
|
virtual |
Read X axis value from magnetometer.
- Returns
- float X axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readMagY |
( |
| ) |
|
|
virtual |
Read Y axis value from magnetometer.
- Returns
- float Y axis value
Implements AloraIMUSensorBase.
float AloraIMULSM9DS1Adapter::readMagZ |
( |
| ) |
|
|
virtual |
Read Z axis value from magnetometer.
- Returns
- float Z axis value
Implements AloraIMUSensorBase.
LSM9DS1* AloraIMULSM9DS1Adapter::imuSensor |
|
private |
The documentation for this class was generated from the following files: