werkend filter: 50 hz notch 20 hz hoogdoorlaat 80 hz laagdoorlaat geabsoluteerd vermenigvuldigd met 10
Dependencies: HIDScope mbed-dsp mbed
Fork of Project5-filtering2 by
Revision 25:a84afc4598fe, committed 2014-10-16
- Comitter:
- DominiqueC
- Date:
- Thu Oct 16 19:14:06 2014 +0000
- Parent:
- 24:0573e4568e2c
- Child:
- 26:d73e33ca524d
- Commit message:
- notch en 20 highpass2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 16 19:08:18 2014 +0000 +++ b/main.cpp Thu Oct 16 19:14:06 2014 +0000 @@ -27,7 +27,7 @@ //constants for 5Hz highpass //5float highpass_const[] = {0.8948577513857248, -1.7897155027714495, 0.8948577513857248, 1.7786300789392977, -0.8008009266036016}; //40float highpass_const[] = {0.39133577250176865, -0.7826715400353731, 0.39133577250176865, 0.36952737735124147, -0.19581571265583314}; -float highpass_const[] = {0.638945525159022, -1.277891050318045, 0.638945525159022, 1.142980502539901, 0.412801598096189}; +float highpass_const[] = {0.638945525159022, -1.277891050318045, 0.638945525159022, 1.142980502539901, -0.412801598096189}; //state values float highpass_states[4]; //constants for 80Hz lowpass