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:
- 74:d281aaef9766
- Parent:
- 66:0f20870117b7
- Child:
- 75:92e79d23d29a
diff -r f6f378311c8d -r d281aaef9766 IMU/IMU.cpp
--- a/IMU/IMU.cpp Mon Jul 30 16:48:48 2018 +0000
+++ b/IMU/IMU.cpp Tue Aug 14 21:06:48 2018 +0000
@@ -195,15 +195,15 @@
}
float IMU::getRoll() {
- return euler[0];
+ return -1*euler[0];
}
float IMU::getPitch() {
- return euler[1];
+ return -1*euler[1];
}
float IMU::getHeading() {
- return euler[2];
+ return -1*euler[2];
}
bool IMU::getIsValid2dFix() {