emg trial
Dependencies: FastPWM HIDScope MODSERIAL mbed biquadFilter
Diff: main.cpp
- Revision:
- 7:d72cbd7055af
- Parent:
- 6:51c87d04371d
- Child:
- 8:39519b33f767
--- a/main.cpp Fri Oct 26 13:54:12 2018 +0000 +++ b/main.cpp Fri Oct 26 13:58:47 2018 +0000 @@ -125,16 +125,16 @@ } */ -float EMG_mean (float EMGarray[200]) +float EMG_mean (float EMGarray[100]) { float sum = 0.0; - for(int j=0; j<200; j++) + for(int j=0; j<100; j++) { sum += EMGarray[j]; } - float EMG_filt = sum / 200.0; + float EMG_filt = sum / 100.0; return EMG_filt; }