update with altimeter, swimfile.txt endleg.txt, etc see changes_13sep.txt also reset_PI()

Dependencies:   mbed MODSERIAL FATFileSystem

Revision:
102:0f430de62447
Parent:
74:d281aaef9766
--- a/Sensors/Sensors.cpp	Fri Jun 28 15:07:41 2019 +0000
+++ b/Sensors/Sensors.cpp	Fri Sep 13 16:51:48 2019 +0000
@@ -22,4 +22,17 @@
 //currently using BCE CS line for this data
 float Sensors::getAltimeterChannelReadings() {
     return adc().readCh2();             //channel 2 (third channel) from the schematic
+}
+float Sensors::getAltimeterReading_m() {   // edit by CAM added by jcw 11sep2019
+    return _altimeter_slope * adc().readCh2() + _altimeter_intercept;    
+}    
+
+void Sensors::setAltimeterSlope(float S){
+    _altimeter_slope = S;
+    return;
+}
+
+void Sensors::setAltimeterIntercept(float I){
+    _altimeter_intercept = I;
+    return;
 }
\ No newline at end of file