Leon Klute / Mbed 2 deprecated EMG_Controller_6

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller_5 by Nahuel Manterola

Revision:
18:7178416f2db5
Parent:
17:80316a7a917a
diff -r 80316a7a917a -r 7178416f2db5 main.cpp
--- a/main.cpp	Mon Oct 31 12:39:41 2016 +0000
+++ b/main.cpp	Mon Oct 31 12:44:15 2016 +0000
@@ -114,15 +114,14 @@
     low_pass_1.add( &bq19 ).add( &bq110 ).add( &bq111 );
     low_pass_2.add( &bq29 ).add( &bq210 ).add( &bq211 );
     
-    //call the timeouts for the startup states and the tickers for reading the emgs
+    //call the timeouts for the startup states and the ticker for reading the emgs
     change_state.attach( &calibrate,1);
     change_state2.attach( &run,11);
     controlstarterTimeout.attach(&start_controlling,11);
-    emgSampleTicker.attach( &emgSample, 0.005); //200Hz
-    ServoPWMpin.period(0.01f);                          // 0.01 second period
+    emgSampleTicker.attach( &emgSample, 0.005);         //200Hz
+    ServoPWMpin.period(0.01f);                          // 0.01 second period of pwm cycle
     
     while (true) {
- //       pc.printf("\n\r%f", Norm_EMG_0);
         if (go_emgSample == true){
                 EMG_filter();
         }