init
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user