Code for the COVR project DROPSAW project test rig (previously used for the Heros testing).
Dependencies: SPTE_10Bar_5V mbed AS5048 SDFileSystem MODSERIAL LCM101_DROPSAW LinearActuator
Diff: bench.h
- Revision:
- 12:b0a6faaa5e9f
- Parent:
- 10:77fcbad99a31
diff -r 77fcbad99a31 -r b0a6faaa5e9f bench.h --- 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