Nahuel Manterola / Mbed 2 deprecated EMG_Controller_5

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller by Pascal van Baardwijk

Revision:
5:bb77e2a6c1e8
Parent:
4:e59a99c5aa08
Child:
6:6cb7c0247560
--- a/main.cpp	Tue Oct 25 10:36:50 2016 +0000
+++ b/main.cpp	Tue Oct 25 11:13:13 2016 +0000
@@ -88,7 +88,7 @@
     emgSampleTicker.attach( &emgSample, 0.002);
     
     treshold = (cali_max-cali_min)*treshold_multiplier;
-    servoTick.attach(&control_servo, 1/Frequency);
+//    servoTick.attach(&control_servo, 1/Frequency);
     ServoPWMpin.period(0.01f);                          // 0.01 second period
     
     while (true) {
@@ -101,18 +101,15 @@
         if (Controller_Flag == true){
             Slide_Controller();
             Lift_Controller();
-            control_servo();
+            control_servo(Norm_EMG_0);
             
             Controller_Flag = false;
         }
-        
 
-        
-        
-        
     }
     return 0;
 }
+
 void Ticker_Flag(){
     Controller_Flag = true;
 }