State machine

Dependencies:   mbed Adafruit_GFX BioroboticsMotorControl MODSERIAL BioroboticsEMGFilter

Revision:
5:2632dfc8454c
Parent:
4:5a44ab7e94b3
Child:
6:bfc6e68774f5
--- a/main.cpp	Tue Oct 30 11:52:50 2018 +0000
+++ b/main.cpp	Tue Oct 30 11:56:48 2018 +0000
@@ -53,7 +53,7 @@
         // State just changed to this one.
 
         led_green = 0;
-        screen.display_state_name("Motor calib");
+        screen.display_state_name("Motor calibration");
     }
 }
 
@@ -62,6 +62,7 @@
     if(last_state != current_state) {
         last_state = current_state;
         // State just changed to this one.
+        screen.display_state_name("EMG 1 calibration");
     }
 }
 
@@ -70,6 +71,7 @@
     if(last_state != current_state) {
         last_state = current_state;
         // State just changed to this one.
+        screen.display_state_name("EMG 2 calibration");
     }
 }
 
@@ -78,6 +80,7 @@
     if(last_state != current_state) {
         last_state = current_state;
         // State just changed to this one.
+        screen.display_state_name("Homing");
     }
 }
 
@@ -86,6 +89,7 @@
     if(last_state != current_state) {
         last_state = current_state;
         // State just changed to this one.
+        screen.display_state_name("Normal operation");
     }
 }