I2C library for Bosch BNO055 sensor

Dependents:   BNO055_HelloWorld robfish_test_IMU_and_hallsensor SCRIBE_stepper SCRIBE_servo ... more

Based off the Bosch Sensortec driver stored at GitHub. I've broken out the main control functions out as separate functions, save for the interrupt setting up, Configuration for the separate sensors not yet enabled.

Files at this revision

API Documentation at this revision

Comitter:
StressedDave
Date:
Tue Sep 22 19:09:45 2015 +0000
Parent:
5:beaa2bff7ff0
Commit message:
Revised scaling on accelerometer

Changed in this revision

BNO055.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/BNO055.cpp	Thu Sep 10 18:26:47 2015 +0000
+++ b/BNO055.cpp	Tue Sep 22 19:09:45 2015 +0000
@@ -5,7 +5,7 @@
     //Set I2C fast and bring reset line high
     _i2c.frequency(400000);
     address = BNOAddress;
-    accel_scale = 1.0f;
+    accel_scale = 0.001f;
     rate_scale = 1.0f/16.0f;
     angle_scale = 1.0f/16.0f;
     temp_scale = 1;
@@ -59,7 +59,7 @@
         }
     else {
         rx = rx | units;
-        accel_scale = 1.0f;
+        accel_scale = 0.001f;
         }
     writechar(BNO055_UNIT_SEL_ADDR,rx);
 }