blue mbed code for the BNO055 imu from adafruit

Dependencies:   BNO055 MODSERIAL mbed

Fork of bmbed_lidar_belt by sensory_array

Revision:
9:59d23ab8d73b
Parent:
8:2ddeec5d8f84
Child:
11:c972bf9c24de
--- a/main.cpp	Thu Oct 15 14:58:35 2015 +0000
+++ b/main.cpp	Fri Oct 16 19:34:32 2015 +0000
@@ -20,9 +20,13 @@
 
 //for calculating allowable change in height for the down lidar
 float allowHeight = 120; //120 mm
-float downAngle = -7.0;
+float downAngle = -5.6;
 //for calibrating IMU
-char cal_vals[22] = {255, 255, 220, 255, 13, 0, 83, 255, 36, 1, 80, 0, 253, 255, 0, 0, 1, 0, 232, 3, 235, 2};
+//for IMU1:
+//char cal_vals[22] = {255, 255, 220, 255, 13, 0, 83, 255, 36, 1, 80, 0, 253, 255, 0, 0, 1, 0, 232, 3, 235, 2};
+//for IMU2:
+char cal_vals[22] = {231, 255, 253, 255, 8, 0, 43, 255, 31, 1, 221, 255, 0, 0, 254, 255, 2, 0, 232, 3, 210, 2};
+
 
 //for encoder:
 //need to set pins to DigitalIn with internal pullup resistors