Leon Klute / Mbed 2 deprecated EMG_Controller_6

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller_5 by Nahuel Manterola

Revision:
16:58b0df053d45
Parent:
15:4cd14d429ad8
Child:
17:80316a7a917a
--- a/main.cpp	Fri Oct 28 12:51:34 2016 +0000
+++ b/main.cpp	Fri Oct 28 12:54:35 2016 +0000
@@ -114,16 +114,13 @@
     
     change_state.attach( &calibrate,1);
     change_state2.attach( &run,11);
-    controlstarterTimeout.attach(&start_controlling,11); ///// ook nieuw
+    controlstarterTimeout.attach(&start_controlling,11);
     emgSampleTicker.attach( &emgSample, 0.005); //200Hz
     
-//    treshold = (cali_max-cali_min)*treshold_multiplier;
-//    servoTick.attach(&control_servo, 1/Frequency);
     ServoPWMpin.period(0.01f);                          // 0.01 second period
     
     while (true) {
  //       pc.printf("\n\r%f", Norm_EMG_0);
-         
         if (go_emgSample == true){
                 EMG_filter();
         }
@@ -151,11 +148,9 @@
                     LED_STATE_GRAB = 1;
                     LED_STATE_MOVE = 0;
                     break;
-            }
-                
+            }          
             Controller_Flag = false;
         }
-
     }
     return 0;
 }