|
Sentinel
|
Class for the accelerometer sensor. More...
#include <accelerometer.h>
Public Member Functions | |
| bool | begin () |
| Initializes the MPU6500 sensor. | |
| void | setup () |
| Initializes the MPU6500 sensor with default settings. | |
| void | update () |
| Updates the accelerometer values. | |
| float | getZ () const |
| Gets the Z value from the accelerometer. | |
| float | getTotal () const |
| Gets the total acceleration from the accelerometer. | |
| float | getPitch () const |
| Gets the pitch from the accelerometer. | |
| float | getRoll () const |
| Gets the roll from the accelerometer. | |
Class for the accelerometer sensor.
| bool SensorAccelerometer::begin | ( | ) |
Initializes the MPU6500 sensor.
| float SensorAccelerometer::getPitch | ( | ) | const |
Gets the pitch from the accelerometer.
| float SensorAccelerometer::getRoll | ( | ) | const |
Gets the roll from the accelerometer.
| float SensorAccelerometer::getTotal | ( | ) | const |
Gets the total acceleration from the accelerometer.
| float SensorAccelerometer::getZ | ( | ) | const |
Gets the Z value from the accelerometer.
| void SensorAccelerometer::update | ( | ) |
Updates the accelerometer values.
Updates the accelerometer values and calculates pitch, roll, and total acceleration.