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 19:0443e0654e8f, committed 2014-10-16
- Comitter:
- DominiqueC
- Date:
- Thu Oct 16 14:15:16 2014 +0000
- Parent:
- 18:2523eba53f16
- Child:
- 20:3ae43944846a
- Commit message:
- highpass nieuwe coefficienten
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 16 13:30:37 2014 +0000 +++ b/main.cpp Thu Oct 16 14:15:16 2014 +0000 @@ -20,12 +20,12 @@ //arm_biquad_casd_df1_inst_f32 notch; //constants for 50Hz notch -//float notch_const[] = {0.9695312529087462, -0.0, 0.9695312529087462, -0.0, 0.9390625058174924}; +//float notch_const[] = {0.9695312529087462, -0.0, 0.9695312529087462, 0.0, -0.9390625058174924}; //state values //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.8948577513857248, -1.7897155027714495, 0.8948577513857248, 1.7786300789392977, -0.8008009266036016}; //state values float highpass_states[4]; //constants for 80Hz lowpass