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
Diff: main.cpp
- Revision:
- 2:ba8ce2dbc778
- Parent:
- 1:622d7b18a1c0
- Child:
- 3:cc1415081d36
--- 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");