emg with text

Dependencies:   HIDScope MODSERIAL biquadFilter mbed

Fork of emg_import by Daniqe Kottelenberg

Revision:
25:58f351d9fcc4
Parent:
24:bfc240e381b4
Child:
26:38dc21b9ba7d
--- a/main.cpp	Tue Oct 25 14:39:40 2016 +0000
+++ b/main.cpp	Fri Oct 28 07:19:58 2016 +0000
@@ -80,7 +80,7 @@
     if(switch_signal_leftarm==1)
     {
         n++;
-        wait(0.05f);
+        wait(0.5f);
     }    
     }
     
@@ -139,10 +139,10 @@
         }
         
         //send signals  to scope
-        scope.set(0, emg_filtered_biceps_right);            //set emg signal to scope in channel 0
-        scope.set(1, emg_filtered_triceps_right);           // set emg signal to scope in channel 1
-        scope.set(2, emg_filtered_biceps_left);                     // set emg signal to scope in channel 2
-        scope.set(3, onoffsignal_rightarm);                          // set emg signal to scope in channel 3
+        scope.set(0, emg_filtered_biceps_right);            //set emg signal to scope in channel 0 // change into raw signal! 
+        scope.set(1, emg_filtered_triceps_right);           // set emg signal to scope in channel 1// change into raw signal!
+        scope.set(2, emg_filtered_biceps_left);             // set emg signal to scope in channel 2
+        scope.set(3, onoffsignal_rightarm);                 // set emg signal to scope in channel 3
         scope.set(4, switch_signal_leftarm);
         
         scope.send();                       //send all the signals to the scope
@@ -154,7 +154,7 @@
 {  
 pc.baud(115200);
 sample_timer.attach(&filter, 0.001);        //continously execute the EMG reader and filter, it ensures that filter and sampling is executed every 1/frequency seconds
-switch_function.attach(&SwitchN,0.1);
+switch_function.attach(&SwitchN,1);
 //endless loop
 
     while (true) {                        // zorgt er voor dat de code oneindig doorgelopen wordt