Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- 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