Jorn Dokter / Mbed 2 deprecated TEB_branch2

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

Revision:
23:767911637f3a
Parent:
17:16d29ed4ab00
Child:
24:d0ca537913c2
--- a/main.cpp	Fri Oct 04 10:17:19 2019 +0000
+++ b/main.cpp	Tue Oct 08 13:45:30 2019 +0000
@@ -8,6 +8,7 @@
 //Homebrew libraries
     #include "header.h"
     //#include "controller.cpp"
+    #include "globalvariables.cpp"
 
 
 //Objects
@@ -33,6 +34,8 @@
     enum States {MovementIdle, CalibrationIdle, Demo, Startup, CalibrationPhysical, CalibrationEMG, Move, TiltCup, FailState};
     States CurrentState; 
 
+    extern double X;
+
     volatile char ledcolor; //r is red, b is blue, g is green, t is bluegreen, p is purple
     volatile int errorCode;
     
@@ -265,6 +268,7 @@
     
     while(true)
     {
-
+        X = 1;
+        double Y = ProcessEMG(X);
     }
 }
\ No newline at end of file