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:
- 18:7178416f2db5
- Parent:
- 17:80316a7a917a
--- a/main.cpp Mon Oct 31 12:39:41 2016 +0000 +++ b/main.cpp Mon Oct 31 12:44:15 2016 +0000 @@ -114,15 +114,14 @@ low_pass_1.add( &bq19 ).add( &bq110 ).add( &bq111 ); low_pass_2.add( &bq29 ).add( &bq210 ).add( &bq211 ); - //call the timeouts for the startup states and the tickers for reading the emgs + //call the timeouts for the startup states and the ticker for reading the emgs change_state.attach( &calibrate,1); change_state2.attach( &run,11); controlstarterTimeout.attach(&start_controlling,11); - emgSampleTicker.attach( &emgSample, 0.005); //200Hz - ServoPWMpin.period(0.01f); // 0.01 second period + emgSampleTicker.attach( &emgSample, 0.005); //200Hz + ServoPWMpin.period(0.01f); // 0.01 second period of pwm cycle while (true) { - // pc.printf("\n\r%f", Norm_EMG_0); if (go_emgSample == true){ EMG_filter(); }