EMG+filter
Dependencies: mbed HIDScope biquadFilter biquad
Diff: main.cpp
- Revision:
- 24:314fa9e0a4a2
- Parent:
- 23:71103eda6fa2
--- a/main.cpp Tue Oct 15 13:28:03 2019 +0000 +++ b/main.cpp Tue Oct 15 13:46:59 2019 +0000 @@ -11,9 +11,9 @@ DigitalOut led(LED1); BiQuadChain bqc; -BiQuad bq1(b0, b1, b2, a1, a2); //voor low-pass -BiQuad bq2(b00, b11, b22, a11, a22); // voor high-pass -BiQuad bq3(b000, b111, b222, a111, a222); //notch -> voor coëfficienten, zie matlab +BiQuad bq1(0.0030, 0.0059, 0.0030, -1.8404,0.8522); //voor low-pass +BiQuad bq2(0.9737, -1.9474, 0.9737, -1.9467, 0.9481); //voor high-pass +BiQuad bq3(0.9912, -1.9823,0.9912, -1.9822, 0.9824); //lage piek eruit-> voor coëfficienten, zie matlab Ticker emgSampleTicker; AnalogIn emg(A0); //kloptA0 wel??