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 MODSERIAL QEI biquadFilter mbed
Fork of emg_import 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;
