HeRoS: read out and log joint angles and force sensor data from the leg test bench. Now with additional features to read pressure sensors and set the null values of the pressure and force sensors

Dependencies:   SPTE_10Bar_5V mbed AS5048 SDFileSystem MODSERIAL PinDetect Valve LCM101

Fork of heros_leg_readout_torque_addition by K K

Revision:
11:b0a6faaa5e9f
Parent:
10:77fcbad99a31
--- a/bench.h	Mon Feb 17 15:15:24 2020 +0000
+++ b/bench.h	Tue Feb 25 15:04:21 2020 +0000
@@ -58,6 +58,11 @@
 
     bool isLogging();//indicates if we are now datalogging
     void stopLogging();//halts the data logging if we are now datalogging
+
+    void StopLogging(); //halts the data logging if we are now datalogging
+    void StartLogging(const char * fname_append = "data"); //starts datalogging
+    void RestartLogging(const char * fname_append = "data");//restart datalogging
+    void LogData();
     
     //reading angle sensors
     As5048* get_as5048();
@@ -140,10 +145,8 @@
     string extraColNames[maxCols];//names of extra columns (up to maxCols allowed with 15 characters)  
     float extraColValues[maxCols];//value held in extra columns for current time step
        
-    void InitSdCard();      
-    void StartLogging(const char * fname_append = "data");
-    void StopLogging();
-    void LogData();
+    void InitSdCard();     
+
     void ToggleLogging();
     
     // serial printing