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 emg_import by
Diff: main.cpp
- Revision:
- 5:688b1b5530d8
- Parent:
- 4:7d9ca9c1dcce
- Child:
- 6:83358367e413
diff -r 7d9ca9c1dcce -r 688b1b5530d8 main.cpp
--- a/main.cpp	Fri Oct 21 13:26:36 2016 +0000
+++ b/main.cpp	Fri Oct 21 13:32:49 2016 +0000
@@ -12,20 +12,19 @@
 //define variables
 double emg_0_value;
 double emg_gefilterd;
-double emg_abs
-biquadFilter filterhigh1(-1.1430, 0.4128, 0.6389, -1.2779, 0.6389); //eerste hoogdoorlaat filter
+
+
+biquadFilter filterhigh1(-1.1430, 0.4128, 0.6389, -1.2779, 0.6389);
 
 void filter(){
         emg_0_value=emg0.read();                            //read the emg value from the elektrodes
-        emg_filtered= filterhigh1.step(emg_0_value);
-        emg_abs=abs(emg_filtered);
-
+        emg_gefilterd= filterhigh1.step(emg_0_value);
+        
         led=!led;
                      
         //send signals  to scope
         scope.set(0, emg_0_value );           //set emg signal to scope in channel 1
         scope.set(1, emg_gefilterd );    
-        scope.set(2, emg_abs);
         scope.send();                       //send all the signals to the scope
                 }
 
    