Leon Klute / Mbed 2 deprecated EMG_Controller_6

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller_5 by Nahuel Manterola

Revision:
11:c8b6a2b314c3
Parent:
8:aa03407660f1
Child:
13:0adbf6a5de37
--- 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