MPU6050 library using i2c interface on LPC1768 - Complementary filter is added. Now program can calculate pitch and roll angles.
Dependents: gimbalController_brushless_IMU i2c_MPU6050 IMU_fusion kpitmpu6050dht11 ... more
Revision 6:5b90f2b5e6d9, committed 2015-08-05
- Comitter:
- BaserK
- Date:
- Wed Aug 05 13:15:07 2015 +0000
- Parent:
- 5:5bff0edcdff8
- Commit message:
- i2c object is static now
Changed in this revision
MPU6050.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5bff0edcdff8 -r 5b90f2b5e6d9 MPU6050.cpp --- 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 */