10#define ACCELEROMETER_H
13#include <MPU6500_WE.h>
25 MPU6500_WE accel = MPU6500_WE();
Class for the accelerometer sensor.
Definition accelerometer.h:23
void update()
Updates the accelerometer values.
Definition accelerometer.cpp:58
float getZ() const
Gets the Z value from the accelerometer.
Definition accelerometer.cpp:75
float getTotal() const
Gets the total acceleration from the accelerometer.
Definition accelerometer.cpp:86
bool begin()
Initializes the MPU6500 sensor.
Definition accelerometer.cpp:23
float getPitch() const
Gets the pitch from the accelerometer.
Definition accelerometer.cpp:96
void setup()
Initializes the MPU6500 sensor with default settings.
Definition accelerometer.cpp:40
float getRoll() const
Gets the roll from the accelerometer.
Definition accelerometer.cpp:106
Configuration Header File.