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 QEI biquadFilter mbed
Fork of EMG_Controller by
Diff: emg.h
- Revision:
- 10:25d7600d1e38
- Parent:
- 9:1cb2d5ab51e6
- Child:
- 11:c8b6a2b314c3
--- a/emg.h Thu Oct 27 11:46:55 2016 +0000 +++ b/emg.h Thu Oct 27 11:50:16 2016 +0000 @@ -8,7 +8,7 @@ states state = STATE_DEFAULT; //Creating two scope channels -//HIDScope scope(4); +HIDScope scope(3); //Notch filter BiQuadChain notch_50; @@ -142,13 +142,9 @@ Norm_EMG_2 = (emg_low_passed[2] - min_emg[2])/(max_emg[2]-min_emg[2]); //Send scope data - //scope.set(0,emg_sample[0]); - //scope.set(1,emg_notch[0]); - //scope.set(2,emg_high_passed[0]); - //scope.set(3,input_force0); - //scope.set(2,emg_low_passed[0]); - //scope.set(3,input_force2); - //scope.send(); + scope.set(0,Norm_EMG_0); + scope.set(1,Norm_EMG_1); + scope.set(2,Norm_EMG_2); go_emgSample = false; }