State machine

Dependencies:   mbed Adafruit_GFX BioroboticsMotorControl MODSERIAL BioroboticsEMGFilter

Revision:
28:25917b26022c
Parent:
19:53b9729fbab5
Child:
29:77fee8a01529
--- a/motor_calibration.h	Thu Nov 01 10:55:11 2018 +0000
+++ b/motor_calibration.h	Thu Nov 01 12:31:39 2018 +0000
@@ -18,7 +18,7 @@
     else
     {
         double motor_angle = current_angle;
-        motor_angle = motor_angle - 3 * motor_rad_per_angle;    // Subtracting five degree angle from the current angle
+        motor_angle = motor_angle - 5 * motor_rad_per_angle;    // Subtracting five degree angle from the current angle
         motor.set_target_angle(motor_angle); 
         iterations_not_moving = 0;            // Set time passed in this state back to zero
         //calibLED2 = !calibLED2;                              // LED turns red