IMU Kalman Filter

Dependencies:   mbed

Fork of frdm_serial_K64F by Mechatronics

Files at this revision

API Documentation at this revision

Comitter:
kaushik_ray_1
Date:
Fri Feb 06 13:36:54 2015 +0000
Parent:
9:3694ca4b48a7
Commit message:
IMU Kalman Filter

Changed in this revision

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
--- a/main.cpp	Mon Dec 08 13:28:17 2014 +0000
+++ b/main.cpp	Fri Feb 06 13:36:54 2015 +0000
@@ -6,7 +6,7 @@
 //DigitalOut myled(LED_RED);
 Serial pc(USBTX, USBRX);
 
-IMU imu(PTE25,PTE24);
+IMU imu(PTC2,PTC1);
 
 KalmanFilter kf;
 
@@ -63,9 +63,9 @@
         // Then the float is encoded from the string and put into some array until all lines are processed.
         // The array elemnts are sent to the Waveform Chart to plot the data.
         // Using that syntax below, three series will be ploted.
-        // pc.printf("%f\n%f\n%f\r", D[3],D[4],D[5]); //accelerations [m/s^2] from accel
-        //pc.printf("%f\n%f\n%f\r", D[0],D[1],D[2]); //angular velocitites [rad/s] from gyro
-        //pc.printf("%f\n%f\n%f\r", D[6],D[7],D[8]); //angle [rad] from magneto
+        pc.printf("%f\n%f\n%f\r", D[3],D[4],D[5]); //accelerations [m/s^2] from accel
+        pc.printf("%f\n%f\n%f\r", D[0],D[1],D[2]); //angular velocitites [rad/s] from gyro
+        pc.printf("%f\n%f\n%f\r", D[6],D[7],D[8]); //angle [rad] from magneto
         //
         //myled = !myled; // toggle a led
     }
--- a/mbed.bld	Mon Dec 08 13:28:17 2014 +0000
+++ b/mbed.bld	Fri Feb 06 13:36:54 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file