Julius Bernth / Mbed OS Cuvette_Centrifuge_Test_v1-2_ParallelMode

Dependencies:   QEI LIS3DH_spi

Revision:
15:f86310960aab
Parent:
14:81d390496d4e
Child:
16:cefb22c49c2f
--- a/main.cpp	Thu Aug 12 16:51:19 2021 +0000
+++ b/main.cpp	Thu Aug 12 16:53:02 2021 +0000
@@ -147,12 +147,12 @@
             double timeElapsed = testTimer.read();
             double timeRemaining = SPIN_T[5] - timeElapsed;
             int displayTime = int(timeRemaining)+1;
-            //printf("Time remaining %d s\r\n", displayTime);
+            printf("Time remaining %d s\r\n", displayTime);
             //mut1.lock();
             double printDemandSpeed = demandSpeed_RPM;
             double printCurrentSpeed = currentSpeedRPM;
             //mut1.unlock();
-            printf("%f\t%f\r\n", currentSpeedRPM,_MagFil);
+            //printf("%f\t%f\r\n", currentSpeedRPM,_MagFil);
             //printf("%f\t%f\r\n", printDemandSpeed,printCurrentSpeed);
             //printf("%f\r\n",_MagFil);
         }
@@ -203,7 +203,7 @@
         _MagFil = MagFil;
         if (MagFil > VIBRATION_THRESHOLD){
             //mut1.lock();
-            //state = STATE_ERROR;
+            state = STATE_ERROR;
             printf("Excess vibration detected\r\n");
             //mut1.unlock();
         }