Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope mbed-dsp mbed
Fork of Project5-filtering2 by
Diff: main.cpp
- Revision:
- 22:fe4d9195f6dd
- Parent:
- 21:c9da9adc6706
- Child:
- 23:07db8414fbe6
diff -r c9da9adc6706 -r fe4d9195f6dd main.cpp --- 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);