Nahuel Manterola / Mbed 2 deprecated EMG_Controller_5

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller by Pascal van Baardwijk

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