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 another_try_from_scratch_on_emg by
Revision 39:c933a6c2b730, committed 2016-10-31
- Comitter:
- daniQQue
- Date:
- Mon Oct 31 15:11:42 2016 +0000
- Parent:
- 38:23601b26bb84
- Child:
- 40:187ef29de53d
- Commit message:
- 1 EMG signal biceps, new notch filter with new coefficients from matlab, works perfectly!!
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 28 13:05:13 2016 +0000
+++ b/main.cpp Mon Oct 31 15:11:42 2016 +0000
@@ -21,7 +21,7 @@
BiQuad filterhigh(9.1497e-01, -1.8299e+00, 9.1497e-01, -1.8227e+00, 8.3718e-01); //
BiQuad filterlow ( 3.9130e-05 , 7.8260e-05 , 3.9130e-05, -1.9822e+00 , 9.8239e-01); //
-BiQuad notch( 2.0083e-02 , 4.0167e-02, 2.0083e-02 , -1.5610e+00 , 6.4135e-01);
+BiQuad notch( 9.9376e-01 , -1.8902e-00, 9.9376e-01 , -1.8902e-00 , 9.875e-01);
//functions which are called in ticker
void filter(){
@@ -39,7 +39,7 @@
{onoffsignal=0;}
//send signals to scope
- scope.set(0, emg_filtered_notch ); //set emg signal to scope in channel 1
+ scope.set(0, emg_biceps_right ); //set emg signal to scope in channel 1
scope.set(1, emg_abs_biceps_right);
scope.set(2, emg_filtered_biceps_right);
scope.send(); //send all the signals to the scope
