werkend filter: 50 hz notch 20 hz hoogdoorlaat 80 hz laagdoorlaat geabsoluteerd vermenigvuldigd met 10
Dependencies: HIDScope mbed-dsp mbed
Fork of P5-2 by
Revision 17:969e8c86dc7a, committed 2014-10-16
- Comitter:
- DominiqueC
- Date:
- Thu Oct 16 12:43:31 2014 +0000
- Parent:
- 16:40d61297a7e1
- Child:
- 18:2523eba53f16
- Commit message:
- Aanpassing coefficienten, alleen notch
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 16 12:31:01 2014 +0000 +++ b/main.cpp Thu Oct 16 12:43:31 2014 +0000 @@ -20,17 +20,17 @@ arm_biquad_casd_df1_inst_f32 notch; //constants for 50Hz notch -float notch_const[] = {0.9695312529087462, -0.0, 0.9695312529087462, 1, -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, -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 //arm_biquad_casd_df1_inst_f32 lowpass; -//float lowpass_const[] = {0.6389437261127493, 1.2778874522254986, 0.6389437261127493, 1, 1.1429772843080919, 0.41279762014290533}; +//float lowpass_const[] = {0.6389437261127493, 1.2778874522254986, 0.6389437261127493, 1.1429772843080919, 0.41279762014290533}; //state values //float lowpass_states[4];