![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
the emg filtering part of the program
Dependencies: HIDScope biquadFilter mbed MODSERIAL
Fork of EMG by
Diff: main.cpp
- Revision:
- 35:4905144c1123
- Parent:
- 33:fcd4568f1c86
- Child:
- 36:344588e69589
--- a/main.cpp Tue Oct 25 12:53:39 2016 +0000 +++ b/main.cpp Wed Oct 26 08:52:05 2016 +0000 @@ -6,7 +6,6 @@ //Define objects //Define the button interrupt for the calibration InterruptIn button_calibrate(PTA4); -InterruptIn button_change_mode(PTC6); //Define the EMG inputs AnalogIn emg1( A0 ); @@ -92,9 +91,7 @@ void sample(states &mystate) { states myoldstate=mystate; - - // key=pc.getcNb(); - + if (pc.readable()==1) { key=pc.getc(); speed=0.000326;