Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: BNO055.cpp
- Revision:
- 6:1f722ffec323
- Parent:
- 5:beaa2bff7ff0
- Child:
- 8:c0e576c0b458
diff -r beaa2bff7ff0 -r 1f722ffec323 BNO055.cpp --- 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); }