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:
17:4548efffe193
Parent:
16:fd4521a4f0b3
Child:
18:d7695ac04de3
diff -r fd4521a4f0b3 -r 4548efffe193 main.cpp
--- a/main.cpp	Mon Oct 24 11:40:48 2016 +0000
+++ b/main.cpp	Mon Oct 24 11:45:07 2016 +0000
@@ -5,7 +5,7 @@
 
 //Define objects
 AnalogIn    emg_biceps_right_in( A0 );              //analog in to get EMG from right biceps in to c++
-AnalogIn    emg_tricept_right_in (A1);              //analog in to get EMG from left biceps in to c++
+AnalogIn    emg_triceps_right_in (A1);              //analog in to get EMG from left biceps in to c++
 Ticker      sample_timer;                           //ticker
 HIDScope    scope( 3);              //open 3 channels in hidscope
 DigitalOut richting_motor1(D4);     //motor1 direction output    
@@ -27,8 +27,8 @@
 //functions which are called in ticker
 void filter(){
       
-    biceps_right        =   emg_biceps_right_in.read;  //inladen data
-    triceps_right       =   emg_tricept_right_in.read; //inladen data
+    biceps_right        =   emg_biceps_right_in.read();  //inladen data
+    triceps_right       =   emg_triceps_right_in.read(); //inladen data
     signalsum_right     =   biceps_right-triceps_right; // inladen data
     
     signalsum_right_filter_high     =   filterhigh.step(signalsum_right);