pour daan
Dependencies: HIDScope mbed-dsp mbed
Fork of Project5-filteringBiceps by
Revision 15:0c3fb81707a7, committed 2014-10-16
- Comitter:
- DominiqueC
- Date:
- Thu Oct 16 12:23:59 2014 +0000
- Parent:
- 14:ebaa515f9aea
- Child:
- 16:40d61297a7e1
- Commit message:
- filtercoefficienten aangepast
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 16 10:24:30 2014 +0000 +++ b/main.cpp Thu Oct 16 12:23:59 2014 +0000 @@ -20,17 +20,17 @@ arm_biquad_casd_df1_inst_f32 notch; //constants for 50Hz notch -float notch_const[] = {0.5857841106784856, -1.3007020142696517e-16, 0.5857841106784856, -1.3007020142696517e-16, 0.17156822135697122}; +float notch_const[] = {0.9695312529087462, -0.0, 0.9695312529087462, 1, -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, -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.1429772843080919, 0.41279762014290533}; +//float lowpass_const[] = {0.6389437261127493, 1.2778874522254986, 0.6389437261127493, 1, 1.1429772843080919, 0.41279762014290533}; //state values //float lowpass_states[4];