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.cpp
- Revision:
- 6:5b90f2b5e6d9
- Parent:
- 5:5bff0edcdff8
- Child:
- 7:4e799f8ec792
--- a/MPU6050.cpp Wed Aug 05 12:45:47 2015 +0000 +++ b/MPU6050.cpp Wed Aug 05 13:15:07 2015 +0000 @@ -34,7 +34,7 @@ //I2C i2c(p9,p10); // setup i2c (SDA,SCL) /* For NUCLEO-F411RE board */ - I2C i2c(D14,D15); // setup i2c (SDA,SCL) +static I2C i2c(D14,D15); // setup i2c (SDA,SCL) /* Set initial input parameters */