werkt nog niet
Dependencies: HIDScope MODSERIAL biquadFilter mbed QEI
Fork of Project_script_union by
Diff: main.cpp
- Revision:
- 15:be67b090b64a
- Parent:
- 14:fa09dae67390
- Child:
- 16:5f7196ddc77b
diff -r fa09dae67390 -r be67b090b64a main.cpp --- a/main.cpp Mon Oct 22 09:19:09 2018 +0000 +++ b/main.cpp Mon Oct 22 09:35:55 2018 +0000 @@ -287,7 +287,9 @@ filter_tick.attach(&emg_filtered,T); //EMG signals filtered + moving average every T sec. button1.rise(switch_to_calibrate); //Switch state of calibration (which muscle) + wait(0.2f); button2.rise(calibrate); //calibrate threshold for 3 muscles + wait(0.2f); pwmpin1.period_us(60); //60 microseconds PWM period, 16.7 kHz