emg2
Dependencies: HIDScope biquadFilter mbed QEI
Fork of EMG by
Diff: main.cpp
- Revision:
- 27:6b4814ef266d
- Parent:
- 26:1eafb6111ae8
- Child:
- 28:433d12c52913
--- a/main.cpp Tue Oct 30 09:20:55 2018 +0000 +++ b/main.cpp Tue Oct 30 10:06:24 2018 +0000 @@ -59,7 +59,7 @@ BiQuad L3( c1, c2, d0, d1, d2); // EMG -const int sizeMovAg = 150; //Size of array over which the moving average (MovAg) is calculated +const int sizeMovAg = 100; //Size of array over which the moving average (MovAg) is calculated double sum, sum1, sum2, sum3; //Variables used in calibration and MovAg to sum the elements in the array double StoreArray0[sizeMovAg] = {}, StoreArray1[sizeMovAg] = {}, StoreArray2[sizeMovAg] = {}; @@ -120,7 +120,7 @@ scope.set( 0, emg0); // Sending the signal to the HIDScope scope.set( 1, low0); // Change the numer of inputs on the top when necessary - scope.set( 2, emg1); + scope.set( 2, Average0); scope.set( 3, low1); scope.set( 4, emg2); scope.set( 5, low2);