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_use.h
- Revision:
- 2:a7fa5c448703
- Parent:
- 1:943ebeac19f7
- Child:
- 3:5b036c235d4d
diff -r 943ebeac19f7 -r a7fa5c448703 bno055_use.h
--- a/bno055_use.h Fri Mar 15 09:16:23 2019 +0000
+++ b/bno055_use.h Fri Mar 15 09:19:27 2019 +0000
@@ -119,19 +119,7 @@
*************************/
float getYawRad360() {
float calculate_yawRad;
- /*
- if(data_yawRad > 360.0f) {
- if(count == 1) {
- calculate_yawRad = data_yawRad - 360.0f * 1.0f;
- }
-
- } else if(data_yawRad < -360.0f) {
- if(count == -1) {
- calculate_yawRad = data_yawRad - 360.0f * -1.0f;
- /
- } else {
- calculate_yawRad = data_yawRad;
- }*/
+
if(data_yawRad >= 360.0f) {
calculate_yawRad = 360.0f;
} else if(data_yawRad <= -360.0f) {