hidscope werkt met dit filter
Dependencies: HIDScope biquadFilter mbed
Revision 11:b72827754bc3, committed 2016-10-24
- Comitter:
- daniQQue
- Date:
- Mon Oct 24 08:48:51 2016 +0000
- Parent:
- 10:7255b59224cc
- Commit message:
- met coeffici?nten waarbij hidscope laat zien wat er gebeurt;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7255b59224cc -r b72827754bc3 main.cpp --- a/main.cpp Mon Oct 24 08:44:48 2016 +0000 +++ b/main.cpp Mon Oct 24 08:48:51 2016 +0000 @@ -18,11 +18,11 @@ int onoffsignal=0; double cut_off_value=0.05; //gespecifeerd door floortje -biquadFilter filterhigh1(0.9565, -1.9131, 0.9565, -1.9112, 0.9150); +biquadFilter filterhigh1(-1.1430, 0.4128, 0.6389, -1.2779, 0.6389); void filter(){ - emg_0_value=emg0.read(); //read the emg value from the electrodes + emg_0_value=emg0.read(); //read the emg value from the elektrodes emg_gefilterd= filterhigh1.step(emg_0_value); emg_abs=abs(emg_gefilterd); led=!led;