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.
Fork of BNO055_fusion by
Revision 14:9f9a12bcd8ed, committed 2021-03-05
- Comitter:
- danmbed
- Date:
- Fri Mar 05 13:58:00 2021 +0000
- Parent:
- 13:92854c8deb3c
- Commit message:
- roll and pitch Euler angles corrected
Changed in this revision
BNO055.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BNO055.cpp Thu Feb 01 00:16:59 2018 +0100 +++ b/BNO055.cpp Fri Mar 05 13:58:00 2021 +0000 @@ -68,8 +68,8 @@ _i2c.write(chip_addr, dt, 1, true); _i2c.read(chip_addr, dt, 6, false); h = dt[1] << 8 | dt[0]; - p = dt[3] << 8 | dt[2]; - r = dt[5] << 8 | dt[4]; + r = dt[3] << 8 | dt[2]; + p = dt[5] << 8 | dt[4]; if (use_degrees()) { result->h = (double)h / 16;