EMG signals all around zero, not showing differences anymore in hidscope

Dependencies:   HIDScope MODSERIAL biquadFilter mbed

Fork of a_check_emg_filtered_without_cal by Daniqe Kottelenberg

Revision:
5:688b1b5530d8
Parent:
4:7d9ca9c1dcce
Child:
6:83358367e413
--- 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
                 }