This commit is contained in:
cally22
2023-07-07 21:57:41 +02:00
commit dc5f14256e
12 changed files with 523 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
// GYRO.h
#ifndef GYRO_h
#define GYRO_h
#include <Arduino.h>
#include <Adafruit_MPU6050.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>
class GYRO {
private:
Adafruit_MPU6050 mpu;
float previousAvgs[5] = {0};
float errorMpuValues[5] = {0};
public:
bool initGyro();
float* getAverages();
void calculateError();
};
#endif