Nahuel Manterola / Mbed 2 deprecated EMG_Controller_5

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller by Pascal van Baardwijk

Revision:
9:1cb2d5ab51e6
Parent:
7:eed677b636d3
Child:
11:c8b6a2b314c3
--- a/main.cpp	Wed Oct 26 07:59:31 2016 +0000
+++ b/main.cpp	Thu Oct 27 11:46:55 2016 +0000
@@ -79,12 +79,13 @@
     Lift_Input_force =  Potmeter.read();
     Slide_Input_force = Potmeter2.read();
     
-    notch_50.add( &bq1 ).add( &bq2 ).add( &bq3 );
-    high_pass.add( &bq4 ).add( &bq5 );
+    notch_50.add( &bq3 ).add( &bq4 ).add( &bq5 );
+    high_pass.add( &bq6 ).add( &bq7 );
+    low_pass.add( &bq9 ).add( &bq10 ).add( &bq11 );
     
     change_state.attach( &calibrate,5);
-    change_state2.attach( &run,10);
-    emgSampleTicker.attach( &emgSample, 0.002);
+    change_state2.attach( &run,15);
+    emgSampleTicker.attach( &emgSample, 0.005); //200Hz
     
 //    treshold = (cali_max-cali_min)*treshold_multiplier;
 //    servoTick.attach(&control_servo, 1/Frequency);