IMU code
Dependencies: BNO055_fusion mbed
Fork of Bosch_BNO055_Fusion_example by
Diff: main.cpp
- Revision:
- 5:9594519c9462
- Parent:
- 4:6d1118089a36
- Child:
- 6:58bb66439a03
--- a/main.cpp Fri Apr 10 11:19:49 2015 +0000 +++ b/main.cpp Thu Apr 16 11:25:47 2015 +0000 @@ -7,7 +7,7 @@ * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ * Created: March 30th, 2015 - * Revised: April 10th, 2015 + * Revised: April 16th, 2015 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -112,7 +112,7 @@ while (true){ d = imu.read_calib_status(); imu.get_gravity(&gravity); - pc.printf("Calb dat = 0x%x target = 0xff ACC:X %3.0f, Y %3.0f, Z %3.0f\r\n", + pc.printf("Calb dat = 0x%x target = 0xff ACC:X %4.1f, Y %4.1f, Z %4.1f\r\n", d, gravity.x, gravity.y, gravity.z); if (d == 0xff){ break;} if (pc.readable()){ break;}