Files
J1B4-Fitbot/code/arduino/Movement-sensor-code/SensorManager.h
2024-06-05 13:56:23 +02:00

39 lines
666 B
C++

#ifndef MOVEMENTSENSORCODE_SENSORMANAGER_H
#define MOVEMENTSENSORCODE_SENSORMANAGER_H
#include "Arduino.h"
#include "SparkFun_BNO080_Arduino_Library.h"
class SensorManager {
public:
SensorManager();
void sensorSetup();
struct eulerAngles {
float roll;
float pitch;
float yaw;
};
struct acceleration {
float x;
float y;
float z;
};
eulerAngles getEulerAngles();
acceleration getAcelleration();
bool sensorTap();
private:
struct RotationQuaternions {
float i;
float j;
float k;
float w;
};
RotationQuaternions getQuaternions();
BNO080 myIMU;
};
#endif // MOVEMENTSENSORCODE_SENSORMANAGER_H