Evan Brown
/
APpart3_E_start
11/18
Diff: sensor_fusion.h
- Revision:
- 1:491bd986ce22
- Parent:
- 0:f43994f44684
- Child:
- 2:a4d5e7f96e87
--- a/sensor_fusion.h Thu Nov 08 20:48:47 2018 +0000 +++ b/sensor_fusion.h Sat Nov 10 00:23:07 2018 +0000 @@ -22,8 +22,12 @@ #define CONFIG 0x1A //the IMU config register #define GYRO_CONFIG 0x1B //the gyroscope config register #define ACCEL_CONFIG 0x1C //the accelerometer config register -#define GYRO_X 0x44 //the register that stores the first bit of the gyroscope x value +#define GYRO_X 0x44 //the register that stores the first bit of the gyroscope x value +#define GYRO_Y 0x46 +#define GYRO_Z 0x48 #define ACCEL_X 0x3C //the register that stores the first bit of the accelerometer x value +#define ACCEL_Y 0x3E +#define ACCEL_Z 0x40 class MPU6050 {