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:
- 85:dd8176285b6e
- Parent:
- 74:d281aaef9766
- Child:
- 87:6d95f853dab3
--- a/OuterLoop/OuterLoop.cpp	Tue Feb 19 20:11:43 2019 +0000
+++ b/OuterLoop/OuterLoop.cpp	Mon Feb 25 21:26:34 2019 +0000
@@ -56,7 +56,8 @@
 void OuterLoop::update() { 
     // update the position velocity filter
     if (_sensor == 0) {
-        _sensorVal = depth().getDepthFt();
+           //   _sensorVal = depth().getDepthFt();  //  change to getting meters
+        _sensorVal = depth().getDepthM();
     } else if (_sensor == 1) {
         _sensorVal = imu().getPitch();
     } else if (_sensor == 2) {