State machine

Dependencies:   mbed Adafruit_GFX BioroboticsMotorControl MODSERIAL BioroboticsEMGFilter

Revision:
33:543debddb3a9
Parent:
29:77fee8a01529
--- a/motor_calibration.h	Thu Nov 01 14:11:30 2018 +0000
+++ b/motor_calibration.h	Thu Nov 01 14:39:55 2018 +0000
@@ -24,7 +24,7 @@
         //calibLED2 = !calibLED2;                              // LED turns red
     }
     
-    if (iterations_not_moving >= 20)           // After 5 seconds have passed (10 times Ticker motor_calib)
+    if (iterations_not_moving >= 10)           // After enough time has passed.
     {
         return true;
         //alibLED3 = !calibLED3;                              // LED becomes red (purple if both motors are calibrated)