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: OuterLoop/OuterLoop.cpp
- Revision:
- 87:6d95f853dab3
- Parent:
- 85:dd8176285b6e
--- a/OuterLoop/OuterLoop.cpp Thu May 02 20:34:16 2019 +0000
+++ b/OuterLoop/OuterLoop.cpp Wed May 08 13:24:04 2019 +0000
@@ -22,6 +22,7 @@
if (_sensor == 2) {
_pid.setHeadingFlag(true); //used to update the handling for the heading PID control loop
+ _filter.setHeadingFlag(true);
}
}
@@ -62,6 +63,9 @@
_sensorVal = imu().getPitch();
} else if (_sensor == 2) {
_sensorVal = imu().getHeading();
+ } else if (_sensor == 3) {
+ _sensorVal = sensors().getAltimeterChannelReadings(); // 27mar2019 this is still in counts
+ // _sensorVal = imu().getPitch(); // 27mar2019 testing sensors error?
} else {
error("\n\r This sensor option does not exist");
}