Quadrocopter - Freescale K64F - IMU Pololu

Dependencies:   mbed

Fork of frdm_serial by Freescale

Tasks

  • reading from an accelerometer and a gyro placed on Pololu IMUv9 board
  • sending in serial (SCA, SCL) to show time histories on LabVIEW charts (configured with the use of VISA)

Used libraries

  • IMU
  • Kalman

Description

This simple program uses available libraries to read data from an accelerometer and a gyro placed on Pololu board.

Boards

All with serial data transmission, i.e. Freescale FRDM-K64F.

Files at this revision

API Documentation at this revision

Comitter:
Pawel_13
Date:
Mon Dec 08 13:28:17 2014 +0000
Parent:
8:7a22b8294c5d
Commit message:
Some comments were added.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 08 13:21:33 2014 +0000
+++ b/main.cpp	Mon Dec 08 13:28:17 2014 +0000
@@ -27,6 +27,7 @@
     
     //Filtr Kalmana
     kf_update = kf.update(d[2], d[5]);
+    //Wyslanie wartosci w protekole szeregowym do Labview (zmienic liczbe danych w labView jest sprintf wysyla wiecej wartosci).
     sprintf(buff, "%f\n%f\n%f\r", d[5], D[5], (float) kf_update);
 //    sprintf(buff, "%f\n%f\n%f\r", d[6], d[7], d[8]);
 }
@@ -55,6 +56,7 @@
     while (true) {        
         //pc.printf("%f\n%f\n%f\r", d[3], kf_update, kf_estimated_data);
         wait(1.0f);
+        // Komentarz wprowadzam w jezyku angielskim, poniewaz program jest dostepny publicznie:::
         // Hex char 0xD = \r is the termination char in the LabVIEW VISA Configure Serial Port vi.
         // It points to the end of string and separates single vector of acquired data. 
         // Hex char 0xA = \n points to the new line. LabVIEW Pick Line vi selects the line with a float represented by string.