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 Daan

Files at this revision

API Documentation at this revision

Comitter:
DominiqueC
Date:
Thu Oct 16 19:14:37 2014 +0000
Parent:
25:a84afc4598fe
Child:
27:2ccef1104c16
Commit message:
notch en 20 hz highpass werkend!

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:14:06 2014 +0000
+++ b/main.cpp	Thu Oct 16 19:14:37 2014 +0000
@@ -24,9 +24,7 @@
 //state values
 float notch_states[4];
 arm_biquad_casd_df1_inst_f32 highpass;
-//constants for 5Hz highpass
-//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};
+//constants for 20Hz highpass
 float highpass_const[] = {0.638945525159022, -1.277891050318045, 0.638945525159022, 1.142980502539901, -0.412801598096189};
 //state values
 float highpass_states[4];