EMG filtered

Dependencies:   HIDScope mbed

Fork of EMG by Tom Tom

Revision:
22:c7ccfe13d168
Parent:
21:173af3b4367d
Child:
23:5c304175d791
--- a/main.cpp	Mon Oct 09 10:06:21 2017 +0000
+++ b/main.cpp	Mon Oct 09 10:10:15 2017 +0000
@@ -10,8 +10,8 @@
 DigitalOut  led(LED1);
 volatile float EMGData_f1=0;
 double f_v1_EMG=0, f_v2_EMG=0; // set filter variables EMG 1
-const double M1_F_A1_EMG=-1.561018075800718, M1_F_A2_EMG=0.641351538057563, M1_F_B0_EMG=0.020083365564211, 
-M1_F_B1_EMG=0.040166731128423, M1_F_B2_EMG=0.020083365564211;// set EMG filter coefficients 
+const double M1_F_A1_EMG=-1.561018075800718, M1_F_A2_EMG=0.641351538057563, M1_F_B0_EMG=0.800592403464570, 
+M1_F_B1_EMG=-1.601184806929141, M1_F_B2_EMG=0.800592403464570;// set EMG filter coefficients 
 
 /** Sample function
  * this function samples the emg and sends it to HIDScope