MPU6050 library using i2c interface on LPC1768 - Complementary filter is added. Now program can calculate pitch and roll angles.
Fork of MPU6050 by
Diff: MPU6050.h
- Revision:
- 5:5bff0edcdff8
- Parent:
- 3:a173ad187e67
- Child:
- 7:4e799f8ec792
--- a/MPU6050.h Wed Aug 05 12:17:44 2015 +0000 +++ b/MPU6050.h Wed Aug 05 12:45:47 2015 +0000 @@ -33,7 +33,6 @@ #define PI 3.14159265359 // This value will be used when calculating angles #define dt 0.005 // 200 Hz sampling period -extern I2C i2c; // extern the i2c in order to able to use from other files extern float aRes, gRes; /* whoAmI func uses this func, variables etc */