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 by
Diff: main.cpp
- Revision:
- 7:eed677b636d3
- Parent:
- 6:6cb7c0247560
- Child:
- 9:1cb2d5ab51e6
--- a/main.cpp Tue Oct 25 12:07:53 2016 +0000 +++ b/main.cpp Tue Oct 25 12:35:29 2016 +0000 @@ -17,9 +17,8 @@ //Serial pc(USBTX,USBRX); Ticker Controller; -//char Key; bool Controller_Flag=0; -//float Frequency = 30; +float Frequency = 30; float Frequency_PWM = 10000; float Slide_Radius = 12.5; @@ -87,7 +86,7 @@ change_state2.attach( &run,10); emgSampleTicker.attach( &emgSample, 0.002); - treshold = (cali_max-cali_min)*treshold_multiplier; +// treshold = (cali_max-cali_min)*treshold_multiplier; // servoTick.attach(&control_servo, 1/Frequency); ServoPWMpin.period(0.01f); // 0.01 second period