MPU6050 library using i2c interface on LPC1768 - Complementary filter is added. Now program can calculate pitch and roll angles.

Dependents:   Q2_Stabi

Fork of MPU6050 by Baser Kandehir

Revision:
4:20f1f660e5c3
Parent:
3:a173ad187e67
Child:
5:5bff0edcdff8
diff -r a173ad187e67 -r 20f1f660e5c3 MPU6050.cpp
--- a/MPU6050.cpp	Tue Jul 21 08:16:36 2015 +0000
+++ b/MPU6050.cpp	Wed Aug 05 12:17:44 2015 +0000
@@ -1,4 +1,6 @@
-/*   @author: Baser Kandehir 
+/*   MPU6050 Library   
+*    
+*    @author: Baser Kandehir 
 *    @date: July 16, 2015
 *    @license: MIT license
 *     
@@ -28,7 +30,11 @@
 
 #include "MPU6050.h"
 
-I2C i2c(p9,p10);         // setup i2c (SDA,SCL)  
+/* For LPC1768 board */
+//I2C i2c(p9,p10);         // setup i2c (SDA,SCL)  
+
+/* For NUCLEO-F411RE board */
+ I2C i2c(D14,D15);         // setup i2c (SDA,SCL)
 
 /* Set initial input parameters */