![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: sensor/BNO055.cpp
- Revision:
- 7:1c09bcc18c14
- Parent:
- 2:e7b09385d197
- Child:
- 9:b5cb0607f484
- Child:
- 20:4e0fa6fba27c
diff -r e7f2335456c8 -r 1c09bcc18c14 sensor/BNO055.cpp --- a/sensor/BNO055.cpp Sat Apr 09 03:20:19 2022 +0000 +++ b/sensor/BNO055.cpp Sat Apr 09 03:39:36 2022 +0000 @@ -216,6 +216,7 @@ //euler.rawroll = (rawdata[3] << 8 | rawdata[2]); //euler.rawpitch = (rawdata[5] << 8 | rawdata[4]); euler.yaw = float(euler.rawyaw)*angle_scale; + euler.yaw = 360 - euler.yaw; //euler.roll = float(euler.rawroll)*angle_scale; //euler.pitch = float(euler.rawpitch)*angle_scale; }