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 24:0573e4568e2c, committed 2014-10-16
- Comitter:
- DominiqueC
- Date:
- Thu Oct 16 19:08:18 2014 +0000
- Parent:
- 23:07db8414fbe6
- Child:
- 25:a84afc4598fe
- Commit message:
- notch en 20hz highpass
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:00:53 2014 +0000 +++ b/main.cpp Thu Oct 16 19:08:18 2014 +0000 @@ -25,8 +25,9 @@ float notch_states[4]; arm_biquad_casd_df1_inst_f32 highpass; //constants for 5Hz highpass -//float highpass_const[] = {0.8948577513857248, -1.7897155027714495, 0.8948577513857248, 1.7786300789392977, -0.8008009266036016}; -float highpass_const[] = {0.39133577250176865, -0.7826715400353731, 0.39133577250176865, 0.36952737735124147, -0.19581571265583314}; +//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}; //state values float highpass_states[4]; //constants for 80Hz lowpass