EMG signalen uitlezen met filters

Dependencies:   HIDScope biquadFilter mbed

Revision:
3:dfc08485b1b2
Parent:
2:5df98e0832d6
Child:
4:d3c27bbe694f
--- a/main.cpp	Fri Oct 28 07:59:51 2016 +0000
+++ b/main.cpp	Fri Oct 28 09:56:18 2016 +0000
@@ -12,8 +12,8 @@
 
 // Filter coordinates of lowpass/highpass filter before rectifier and lowpassfilter for the envelope
 const double b0_low = 0.2929, b1_low = 0.5858, b2_low = 0.2929, a1_low = 0, a2_low = 0.1716;
-const double b0_high = 0.9912, b1_high = -1.9823, b2_high = 0.9912, a1_high = -1.9822, a2_high = 0.9824;
-const double b0_envelope = 6.1006E-5, b1_envelope = 1.2201E-4, b2_envelope = 6.1006E-5, a1_envelope = -1.9776, a2_envelope = 0.9780;
+const double b0_high = 0.9978, b1_high = -1.9956, b2_high = 0.9978, a1_high = -1.9956, a2_high = 0.9956;
+const double b0_envelope = 2.2059E-5, b1_envelope = 4.4119E-4, b2_envelope = 2.2059E-5, a1_envelope = -1.9867, a2_envelope = 0.9868;
 
 double y1, y2, y3;          // Gefilterde output