![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: sensor/BNO055.cpp
- Revision:
- 9:b5cb0607f484
- Parent:
- 7:1c09bcc18c14
--- a/sensor/BNO055.cpp Sat Apr 09 03:39:36 2022 +0000 +++ b/sensor/BNO055.cpp Wed May 25 09:15:47 2022 +0000 @@ -215,8 +215,7 @@ euler.rawyaw = (rawdata[1] << 8 | rawdata[0]); //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.yaw = 360.0 - float(euler.rawyaw)*angle_scale; //euler.roll = float(euler.rawroll)*angle_scale; //euler.pitch = float(euler.rawpitch)*angle_scale; }