:)

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 09:11:48 2014 +0000
Parent:
52:cce270e0753a
Child:
54:f3a9fa5f2b0e
Commit message:
foutjes weg

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:55:45 2014 +0000
+++ b/EMGfilter.cpp	Mon Oct 20 09:11:48 2014 +0000
@@ -217,20 +217,18 @@
             yB1=1;
             if (MOVAVG_B > drempelwaardeB2) {
             yB2=1;
-            if (MOVAVG_B > drempeldwaardeB3) {
-                yB3=1;
-            } else {
-                yB3=0
-            }
+              if (MOVAVG_B > drempelwaardeB3) {
+                yB3=1;} 
+              else {
+                yB3=0;}
         } else {
-            yB2=0
-        }
-        else {
+            yB2=0; }
+        } else { 
             yB1=0;
         }
-        }
+        
         int snelheidsstand;
-        int yB1, yB2, yB3;
+    
         snelheidsstand=yB1+yB2+yB3;
         if (snelheidsstand==1) {
                 pc.printf("Motor 1 beweegt met snelheid 1\n");