Program takes accelerometer and gyroscope data from the MPU6050 registers and calibrates them for better results. Then uses this data is to obtain pitch and roll angles and writes these angles to the terminal which mbed is connected to.

Dependencies:   MPU6050 ledControl2 mbed

Revision:
2:497faa1563ea
Parent:
0:9203a021a0be
Child:
3:88737ad5c803
diff -r 8efed94ca548 -r 497faa1563ea main.cpp
--- a/main.cpp	Thu Jul 09 12:18:37 2015 +0000
+++ b/main.cpp	Thu Jul 09 12:28:26 2015 +0000
@@ -6,7 +6,7 @@
 *   
 *    @description of the program: 
 *    
-*    First of all most of the credits goes to Kris Winer for his useful MPU6050 code.
+*    First of all most of the credit goes to Kris Winer for his useful MPU6050 code.
 *    I rewrite the code in my way using class prototypes and my comments. This program
 *    can be a starter point for more advanced projects including quadcopters, balancing
 *    robots etc. Program takes accelerometer and gyroscope data from the MPU6050 registers