Fork of Alexander Lill's BNO055_fusion library

Files at this revision

API Documentation at this revision

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;