BMT M9 Groep01 / Mbed 2 deprecated emg_filter2

Dependencies:   HIDScope MODSERIAL mbed-dsp mbed

Fork of emg_filter by Tanja H

Revision:
40:f45c41cdae3a
Parent:
39:39940fb9277d
Child:
41:391d2dbb6756
diff -r 39940fb9277d -r f45c41cdae3a EMGfilter.cpp
--- a/EMGfilter.cpp	Mon Oct 20 07:56:33 2014 +0000
+++ b/EMGfilter.cpp	Mon Oct 20 07:59:30 2014 +0000
@@ -219,9 +219,18 @@
             }
 int snelheidsstand;
 snelheidsstand=yB1+yB2+yB3
-            if (y==1) {
-                    pc.printf("Motor 2 beweegt\n");
+            if (snelheidsstand==1) {
+                    pc.printf("Motor 1 beweegt met snelheid 1\n");
                 } else {
                     pc.printf("Motor 2 beweegt niet\n");
                 }
+                if (snelheidsstand==2) {
+                    pc.printf("Motor 1 beweegt met snelheid 2\n");
+                } else {
+                    pc.printf("\n");
+                    }
+                if (snelheidsstand==3) {
+                    pc.printf("Motor 1 beweegt met snelheid 3\n");
+                } else {
+                    pc.printf("\n");
             }