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: HIDScope QEI biquadFilter mbed
Fork of EMG_Controller_5 by
Diff: main.cpp
- Revision:
- 16:58b0df053d45
- Parent:
- 15:4cd14d429ad8
- Child:
- 17:80316a7a917a
diff -r 4cd14d429ad8 -r 58b0df053d45 main.cpp --- a/main.cpp Fri Oct 28 12:51:34 2016 +0000 +++ b/main.cpp Fri Oct 28 12:54:35 2016 +0000 @@ -114,16 +114,13 @@ change_state.attach( &calibrate,1); change_state2.attach( &run,11); - controlstarterTimeout.attach(&start_controlling,11); ///// ook nieuw + controlstarterTimeout.attach(&start_controlling,11); emgSampleTicker.attach( &emgSample, 0.005); //200Hz -// treshold = (cali_max-cali_min)*treshold_multiplier; -// servoTick.attach(&control_servo, 1/Frequency); ServoPWMpin.period(0.01f); // 0.01 second period while (true) { // pc.printf("\n\r%f", Norm_EMG_0); - if (go_emgSample == true){ EMG_filter(); } @@ -151,11 +148,9 @@ LED_STATE_GRAB = 1; LED_STATE_MOVE = 0; break; - } - + } Controller_Flag = false; } - } return 0; }