:)

Dependencies:   HIDScope MODSERIAL mbed-dsp mbed

Fork of emg_filter by Tanja H

Files at this revision

API Documentation at this revision

Comitter:
s1340735
Date:
Wed Oct 15 13:43:20 2014 +0000
Parent:
24:553707c8ebf8
Child:
26:b93c82fb6e1d
Commit message:
errors eruit gehaald

Changed in this revision

EMGfilter.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/EMGfilter.cpp	Wed Oct 15 12:51:42 2014 +0000
+++ b/EMGfilter.cpp	Wed Oct 15 13:43:20 2014 +0000
@@ -110,17 +110,19 @@
 void Antwoord()
 {
     float drempelwaarde=4.99;
-
-    if (filtered_emgB > drempelwaarde) {
-        int y=1;
+    int y;
+    
+    if (filtered_emgB > drempelwaarde) 
+    {
+        y=1;
     } else {
-        int y=0;
+        y=0;
     }
 
-    if (int y=1) {
-        pc.printf("Motor 1 beweegt");
+    if (y==1) {
+        pc.printf("Motor 1 beweegt\n");
     } else {
-        pc.printf("Motor 1 beweegt niet");
+        pc.printf("Motor 1 beweegt niet\n");
     }
 }
-\\drempelwaarde.....
\ No newline at end of file
+//drempelwaarde.....
\ No newline at end of file