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: System/config_functions.cpp
- Revision:
- 11:3b241ecb75ed
- Parent:
- 10:085ab7328054
--- a/System/config_functions.cpp Mon Oct 23 12:50:53 2017 +0000
+++ b/System/config_functions.cpp Fri Oct 27 00:37:32 2017 +0000
@@ -121,7 +121,10 @@
depthLoop().setDeadband(atof(value));
count++;
}
-
+ if (cfg.getValue("zeroOffset", &value[0], sizeof(value))) {
+ depthLoop().setOutputOffset(atof(value));
+ count++;
+ }
return count;
}
@@ -154,6 +157,9 @@
pitchLoop().setDeadband(atof(value));
count++;
}
-
+ if (cfg.getValue("zeroOffset", &value[0], sizeof(value))) {
+ pitchLoop().setOutputOffset(atof(value));
+ count++;
+ }
return count;
}
\ No newline at end of file