Flying Sea Glider / Mbed 2 deprecated 2019_19feb19_jcw_noSD

Dependencies:   mbed MODSERIAL FATFileSystem

Revision:
11:3b241ecb75ed
Parent:
10:085ab7328054
diff -r 085ab7328054 -r 3b241ecb75ed System/config_functions.cpp
--- 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