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.
Dependencies: mbed MODSERIAL FATFileSystem
Diff: IMU/IMU.cpp
- Revision:
- 75:92e79d23d29a
- Parent:
- 74:d281aaef9766
--- a/IMU/IMU.cpp Tue Aug 14 21:06:48 2018 +0000
+++ b/IMU/IMU.cpp Thu Aug 16 13:57:19 2018 +0000
@@ -195,15 +195,15 @@
}
float IMU::getRoll() {
- return -1*euler[0];
+ return euler[0];
}
float IMU::getPitch() {
- return -1*euler[1];
+ return euler[1];
}
float IMU::getHeading() {
- return -1*euler[2];
+ return euler[2]; //
}
bool IMU::getIsValid2dFix() {