Nahuel Manterola / Mbed 2 deprecated EMG_Controller_5

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of EMG_Controller by Pascal van Baardwijk

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;
         }