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: servoController.h
- Revision:
- 11:c8b6a2b314c3
- Parent:
- 8:aa03407660f1
- Child:
- 13:0adbf6a5de37
diff -r 25d7600d1e38 -r c8b6a2b314c3 servoController.h --- a/servoController.h Thu Oct 27 11:50:16 2016 +0000 +++ b/servoController.h Thu Oct 27 14:10:49 2016 +0000 @@ -16,7 +16,7 @@ } void control_servo(double input_signal){ - pc.printf("/n/r %f", input_signal); + //pc.printf("/n/r %f", input_signal); if (input_signal > treshold){ // convert the emg to a zero or a one binary_input_signal = 1; } else { @@ -34,7 +34,7 @@ } Pulsew = 0.0015+(ServoAngle)/180000; // calculate the pulsewidth in the range 1 to 2 milliseconds ServoPWMpin.pulsewidth(Pulsew); // write the pulsewidth - pc.printf("\n\r Pulsew is %f",Pulsew); + //pc.printf("\n\r Pulsew is %f",Pulsew); binary_input_signal_previous = binary_input_signal; } \ No newline at end of file