Dit is het passieve stuurprogramma van de handorthese behorend bij mijn bacheloropdracht. Groet, Menno Sytsma

Dependencies:   EMG FastPWM HIDScope mbed-src

Revision:
6:e206abd0b2ca
Parent:
5:f97bf30bec14
Child:
7:9ea55ce667be
--- a/main.cpp	Wed Jun 01 13:04:36 2016 +0000
+++ b/main.cpp	Wed Jun 01 13:38:55 2016 +0000
@@ -257,13 +257,21 @@
             Rood = 0;
             pc.printf("State 2\n");
             if (Button1pressed.read()==1 && Button2pressed.read()==0) {
-                Setting = true;
+                if (Amplitude != 0){
+                Setting = 2;
+                Start = false;
+                Groen = 1;
+                Rood = 1;
+                N = 0;
+                pc.printf("State 2 D\n");
+                wait(0.5);}
+                else {
+                Setting = 1;
                 Start = false;
                 Groen = 1;
                 Rood = 1;
                 pc.printf("State 2 A\n");
-                wait(0.5);
-
+                wait(0.5);}
 
             }
             if (Button1pressed.read()==0 && Button2pressed.read()==1 && N>0) {