pour daan
Dependencies: HIDScope mbed-dsp mbed
Fork of Project5-filteringBiceps by
Revision 22:fe4d9195f6dd, committed 2014-10-16
- Comitter:
- DominiqueC
- Date:
- Thu Oct 16 18:41:40 2014 +0000
- Parent:
- 21:c9da9adc6706
- Child:
- 23:07db8414fbe6
- Commit message:
- notch en highpass filter
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 16 18:32:55 2014 +0000 +++ b/main.cpp Thu Oct 16 18:41:40 2014 +0000 @@ -41,6 +41,7 @@ uint16_t emg_value; float filtered_emg; float filtered_emg_notch; + float filtered_emg_notch_highpass; float filtered_emg_abs; float emg_value_f32; float filtered_emg_lowpass; @@ -55,11 +56,13 @@ //arm_biquad_cascade_df1_f32(&lowpass, &filtered_emg_notch, &filtered_emg_lowpass, 1 ); arm_biquad_cascade_df1_f32(¬ch, &emg_value_f32, &filtered_emg_notch, 1 ); + arm_biquad_cascade_df1_f32(&highpass, &filtered_emg_notch, &filtered_emg_notch_highpass, 1 ); scope.set(0,emg_value_f32); //uint value //scope.set(1,filtered_emg); //processed float - scope.set(2,filtered_emg_notch); + scope.set(1,filtered_emg_notch); + scope.set(2,filtered_emg_notch_highpass); //scope.set(3,filtered_emg_abs); //scope.set(4,filtered_emg_lowpass); //scope.set(5,emg_value);