Leon Klute / Mbed 2 deprecated EMG_Controller_6

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller_5 by Nahuel Manterola

Revision:
17:80316a7a917a
Parent:
13:0adbf6a5de37
Child:
18:7178416f2db5
--- a/servoController.h	Fri Oct 28 12:54:35 2016 +0000
+++ b/servoController.h	Mon Oct 31 12:39:41 2016 +0000
@@ -1,6 +1,5 @@
 #include "mbed.h"
 
-Serial pc(USBTX,USBRX);
 PwmOut ServoPWMpin(D9);
 Timeout resetter;
 
@@ -16,7 +15,6 @@
 }
 
 void control_servo(double 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 +32,6 @@
     }
     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);
     
     binary_input_signal_previous = binary_input_signal;
 }
\ No newline at end of file