:)

Dependencies:   HIDScope MODSERIAL mbed-dsp mbed

Fork of emg_filter by Tanja H

Files at this revision

API Documentation at this revision

Comitter:
Tanja2211
Date:
Mon Oct 20 08:10:17 2014 +0000
Parent:
42:d49b766ffdc7
Child:
44:b47f559826ba
Commit message:
foutjes outgehaald

Changed in this revision

EMGfilter.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/EMGfilter.cpp	Mon Oct 20 08:04:00 2014 +0000
+++ b/EMGfilter.cpp	Mon Oct 20 08:10:17 2014 +0000
@@ -180,7 +180,7 @@
         float drempelwaardeT=4.99;
         int y;
 
-        if (filtered_emgT > drempelwaarde) {
+        if (MOVAVG_Tf > drempelwaardeT) {
             y=1;
         } else {
             y=0;
@@ -200,11 +200,11 @@
             int yB2;
             int yB3;
 
-            if (filtered_emgB > drempelwaarde1) {
+            if (MOVAVG_B > drempelwaarde1) {
                 yB1=1;
-                if filtered_emgB > drempelwaarde2 {
+                if MOVAVG_B > drempelwaarde2 {
                 yB2=1;
-                if filtered_emgB > drempeldwaarde3{
+                if MOVAVG_B > drempeldwaarde3{
                     yB3=1;
                 } else {
                     yB3=0