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_5 by
Diff: emg.h
- Revision:
- 11:c8b6a2b314c3
- Parent:
- 10:25d7600d1e38
- Child:
- 12:12c162dc8893
--- a/emg.h	Thu Oct 27 11:50:16 2016 +0000
+++ b/emg.h	Thu Oct 27 14:10:49 2016 +0000
@@ -1,6 +1,6 @@
 #include "mbed.h"
 #include "BiQuad.h"
-#include "HIDScope.h"
+//#include "HIDScope.h"
 //Enum with states
 enum states {STATE_DEFAULT , STATE_CALIBRATION, STATE_RUN};
 
@@ -8,7 +8,7 @@
 states state = STATE_DEFAULT;
 
 //Creating two scope channels
-HIDScope scope(3);
+//HIDScope scope(3);
 
 //Notch filter
 BiQuadChain notch_50;
@@ -142,9 +142,9 @@
             Norm_EMG_2 = (emg_low_passed[2] - min_emg[2])/(max_emg[2]-min_emg[2]);
             
             //Send scope data
-            scope.set(0,Norm_EMG_0);
-            scope.set(1,Norm_EMG_1);
-            scope.set(2,Norm_EMG_2);
+            //scope.set(0,Norm_EMG_0);
+            //scope.set(1,Norm_EMG_1);
+            //scope.set(2,Norm_EMG_2);
 
             go_emgSample = false;
         }   
    