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 1:a21d78fa1712, committed 2014-10-09
- Comitter:
- Daanmk
- Date:
- Thu Oct 09 12:28:47 2014 +0000
- Parent:
- 0:68c8cf9a1f96
- Child:
- 2:d2b4ba7ce030
- Commit message:
- 30hz highpass;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 09 12:26:39 2014 +0000 +++ b/main.cpp Thu Oct 09 12:28:47 2014 +0000 @@ -24,8 +24,8 @@ //state values float lowpass_states[4]; arm_biquad_casd_df1_inst_f32 highpass; -//constants for 0.5Hz highpass -float highpass_const[] = {0.97803048, -1.95606096, 0.97803048, 1.95557824 , -0.95654368}; +//constants for 30Hz highpass +float highpass_const[] = {0.5049992667097523, -1.0099985334195045, 0.5049992667097523, -0.7477865686482112, 0.27221049819079784}; //state values float highpass_states[4];