MPU6050 library using i2c interface on LPC1768 - Complementary filter is added. Now program can calculate pitch and roll angles.
Fork of MPU6050 by
Diff: MPU6050RegDef.h
- Revision:
- 7:4e799f8ec792
- Parent:
- 3:a173ad187e67
--- a/MPU6050RegDef.h Wed Aug 05 13:15:07 2015 +0000 +++ b/MPU6050RegDef.h Mon May 30 08:11:07 2016 +0000 @@ -28,6 +28,7 @@ // See also MPU-6050 Register Map and Descriptions, Revision 4.0, RM-MPU-6050A-00, 9/12/2012 for registers not listed in // above document; the MPU6050 and MPU 9150 are virtually identical but the latter has an on-board magnetic sensor // + #define XGOFFS_TC 0x00 // Bit 7 PWR_MODE, bits 6:1 XG_OFFS_TC, bit 0 OTP_BNK_VLD #define YGOFFS_TC 0x01 #define ZGOFFS_TC 0x02