emg

Dependencies:   HIDScope MODSERIAL mbed-dsp mbed TouchButton

Fork of test by BMT M9 Groep01

Files at this revision

API Documentation at this revision

Comitter:
s1340735
Date:
Tue Oct 28 13:49:33 2014 +0000
Parent:
38:017fd93e9efe
Child:
40:42735d766db1
Commit message:
test

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Oct 28 13:45:16 2014 +0000
+++ b/main.cpp	Tue Oct 28 13:49:33 2014 +0000
@@ -176,9 +176,9 @@
     int key=0;//vraagt om calibratie
     key = TButton.PressedButton();
 
-    pc.printf("key 1 calibratie triceps/n");
-    pc.printf("key 2 caliratie biceps/n");
-    pc.printf("key 3 START/n");
+    pc.printf("key 1 calibratie triceps\n");
+    pc.printf("key 2 caliratie biceps\n");
+    pc.printf("key 3 START\n");
 
     wait(5);
 
@@ -235,18 +235,22 @@
         drempelwaardeB2=MOVAVG_B-1;
         pc.printf("drempelwaarde snelheid 3 is %f\r\n", drempelwaardeB3);
 
-        pc.printf("caliratie biceps is klaar, accord? -> key 4/n");
+        pc.printf("caliratie biceps is klaar\n");
 
         wait(5);
+
     } else if (key==3) {
         if(drempelwaardeT==0) {
-            pc.printf("voer calibratie triceps uit");
-        } else if (drempelwaardeB1==0) {
-            pc.printf("voer calibratie biceps uit");
-        } else if (drempelwaardeB2==0) {
-            pc.printf("voer calibratie biceps uit");
-        } else if (drempelwaardeB3==0) {
-            pc.printf("voer calibratie biceps uit");
+            pc.printf("voer calibratie triceps uit\n");
+        }
+        if (drempelwaardeB1==0) {
+            pc.printf("voer calibratie biceps uit\n");
+        }
+        if (drempelwaardeB2==0) {
+            pc.printf("voer calibratie biceps uit\n");
+        }
+        if (drempelwaardeB3==0) {
+            pc.printf("voer calibratie biceps uit\n");
         } else {
 
             //blue