Version 3 is with update to the test rig with a linear actuator

Dependencies:   SPTE_10Bar_5V mbed AS5048 SDFileSystem MODSERIAL PinDetect LCM101 LinearActuator

Revision:
13:219c16e7d32c
Parent:
11:fc82dd22a527
--- a/main.cpp	Wed Aug 12 12:05:58 2020 +0000
+++ b/main.cpp	Tue Oct 20 12:50:40 2020 +0000
@@ -43,8 +43,8 @@
     string colNames[] = {"Target pressure (kPa)","Cycle",}; //add data headings
     leg.setExtraColumns(colNames,2);
     
-    float targetP = 350;                                                                                                                                                                                             0; //Target pressure in kPa
-    int expCycles = 100; //Number of sit to stand to sit cycles 
+    float targetP = 300;                                                                                                                                                                                        
+    int expCycles = 40; //Number of sit to stand to sit cycles 
     float vals[] = {targetP,0}; //set initial values of data that will be logged
     leg.setExtraData(vals);
     
@@ -60,7 +60,7 @@
     while (true) {
         if (leg.isLogging()) {
             leg.pc.printf("Logging started");
-            //runFatigueExperiment0(expCycles,targetP,10,10);
+            runFatigueExperiment0(expCycles,targetP,10,10);
             //runBenchmarkExperiment0();
             runBenchmarkExperiment1(75, 1, 10);    
             //runFailureExp0(targetP);        
@@ -82,7 +82,7 @@
     //The experiment starts when logging does
     Timer flowT;//used to time flow into and out of actuator
     float loopTime = 0.1; //(s) time between checking pressure
-    int num_file = 10; //number of data files to save 
+    int num_file = 1; //number of data files to save 
     
     for (int i=0; i<num_file; i++) {