change at hidscope
Dependencies: HIDScope MODSERIAL biquadFilter mbed
Fork of a_check_emg_filtered_emg by
Diff: main.cpp
- Revision:
- 11:b72827754bc3
- Parent:
- 10:7255b59224cc
--- 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;