AHRS MPU6050

Dependencies:   MPU6050_tmp mbed

Files at this revision

API Documentation at this revision

Comitter:
pommzorz
Date:
Sat Jun 22 11:24:07 2013 +0000
Commit message:
COmmit;

Changed in this revision

MPU6050.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 470f01cb2094 MPU6050.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MPU6050.lib	Sat Jun 22 11:24:07 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/pommzorz/code/MPU6050_tmp/#40ac13ef7290
diff -r 000000000000 -r 470f01cb2094 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Jun 22 11:24:07 2013 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "MPU6050.h"
+#include "GurvIMU.h"
+
+
+//#define     PI 3.1415926535897932384626433832795
+GurvIMU imu;
+
+DigitalOut myled(LED1);
+Serial pc(USBTX, USBRX);
+float euler[3];
+float av[4];
+    
+int main() {
+    pc.baud(921600);//init la liaison série a la vitesse max
+    pc.printf("Init\r\n");
+    imu.init();
+    while(1) {
+        //imu.getYawPitchRollRad(euler);
+        //pc.printf("Yaw : %f , Pitch : %f , Roll : %f \r\n" , euler[0], euler[1], euler[2]);
+        imu.getVerticalAcceleration(av);
+        pc.printf("%f\r\n",av[3]);
+        wait_ms(10);
+    }
+}
diff -r 000000000000 -r 470f01cb2094 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Jun 22 11:24:07 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17
\ No newline at end of file