Calibration program for my port of FreeIMU library. Use it with the FreeIMU Cube program or the python calibration program.

Dependencies:   FreeIMU mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
tyftyftyf
Date:
Mon Dec 23 09:42:23 2013 +0000
Parent:
1:622d7b18a1c0
Child:
3:cc1415081d36
Commit message:

Changed in this revision

FreeIMU.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
--- a/FreeIMU.lib	Mon Dec 23 09:18:24 2013 +0000
+++ b/FreeIMU.lib	Mon Dec 23 09:42:23 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/tyftyftyf/code/FreeIMU/#248255b21c2e
+http://mbed.org/users/tyftyftyf/code/FreeIMU/#cd43764b9623
--- a/main.cpp	Mon Dec 23 09:18:24 2013 +0000
+++ b/main.cpp	Mon Dec 23 09:42:23 2013 +0000
@@ -67,7 +67,7 @@
 }
 
 //if the Processing program cannot accept serial inputs, uncomment this to send quaternion information automatically
-#define AUTO_OUTPUT
+//#define AUTO_OUTPUT
 
 int main()
 {
@@ -114,11 +114,11 @@
             uint8_t count = pc.getc();
             for(uint8_t i=0; i<count; i++) {
 
-                imu.accgyro.getMotion6(&raw_values[0], &raw_values[1], &raw_values[2], &raw_values[3], &raw_values[4], &raw_values[5]);
+                imu.accgyro->getMotion6(&raw_values[0], &raw_values[1], &raw_values[2], &raw_values[3], &raw_values[4], &raw_values[5]);
 
                 writeArr(raw_values, 6, sizeof(int16_t)); // writes accelerometer and gyro values
 
-                imu.magn.getValues(&raw_values[0], &raw_values[1], &raw_values[2]);
+                imu.magn->getValues(&raw_values[0], &raw_values[1], &raw_values[2]);
                 writeArr(raw_values, 3, sizeof(int16_t));
 
                 pc.printf("\r\n");