State machine with EMG functions and parameters

Dependencies:   biquadFilter FastPWM HIDScope MODSERIAL mbed

Fork of StateMachine by Tommie Verouden

Revision:
1:d5ff787228fa
Parent:
0:c0c35b95765f
Child:
2:d70795e4e0bf
--- a/main.cpp	Wed Oct 31 10:30:41 2018 +0000
+++ b/main.cpp	Wed Oct 31 10:32:29 2018 +0000
@@ -15,6 +15,14 @@
 InterruptIn buttonK64F(SW3);        // button on K64F
 InterruptIn emergencybutton(SW2);   // emergency button on K64F
 
+// PC-communication
+bool externalPC = true;             // toggle communication with external PC
+
+if externalPC
+    {
+    MODSERIAL pc(USBTX, USBRX);
+    }
+
 // Define & initialise state machine
 enum states {   waiting, calibratingMotors, calibratingEMGx, calibratingEMGy,
                 homing, operating, flipping, failure, demo };