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
Diff: BNO055.cpp
- Revision:
- 4:9e6fead1e93e
- Parent:
- 3:0ad6f85b178f
- Child:
- 5:6a08a4c5b1e1
diff -r 0ad6f85b178f -r 9e6fead1e93e BNO055.cpp
--- a/BNO055.cpp Fri Apr 10 11:18:12 2015 +0000
+++ b/BNO055.cpp Thu Apr 16 10:47:40 2015 +0000
@@ -7,7 +7,7 @@
* http://www.page.sannet.ne.jp/kenjia/index.html
* http://mbed.org/users/kenjiArai/
* Created: March 30th, 2015
- * Revised: April 10th, 2015
+ * Revised: April 16th, 2015
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
@@ -73,13 +73,13 @@
p = dt[3] << 8 | dt[2];
r = dt[5] << 8 | dt[4];
if (deg_or_rad) {
- el->h = (double)(h / 900);
- el->p = (double)(p / 900);
- el->r = (double)(r / 900);
+ el->h = (double)h / 900;
+ el->p = (double)p / 900;
+ el->r = (double)r / 900;
} else {
- el->h = (double)(h / 16);
- el->p = (double)(p / 16);
- el->r = (double)(r / 16);
+ el->h = (double)h / 16;
+ el->p = (double)p / 16;
+ el->r = (double)r / 16;
}
}
@@ -120,9 +120,9 @@
la->y = (double)y;
la->z = (double)z;
} else {
- la->x = (double)(x / 100);
- la->y = (double)(y / 100);
- la->z = (double)(z / 100);
+ la->x = (double)x / 100;
+ la->y = (double)y / 100;
+ la->z = (double)z / 100;
}
}
@@ -151,9 +151,9 @@
gr->y = (double)y;
gr->z = (double)z;
} else {
- gr->x = (double)(x / 100);
- gr->y = (double)(y / 100);
- gr->z = (double)(z / 100);
+ gr->x = (double)x / 100;
+ gr->y = (double)y / 100;
+ gr->z = (double)z / 100;
}
}
