Dit is het passieve stuurprogramma van de handorthese behorend bij mijn bacheloropdracht. Groet, Menno Sytsma
Dependencies: EMG FastPWM HIDScope mbed-src
Revision 6:e206abd0b2ca, committed 2016-06-01
- Comitter:
- s1503189
- Date:
- Wed Jun 01 13:38:55 2016 +0000
- Parent:
- 5:f97bf30bec14
- Child:
- 7:9ea55ce667be
- Commit message:
- Opgeruimde versie, toevoeging op vorige keer: ; Reset is echt alles reset,; Linker knop is alleen aantal herhalingen reset als loop al een keer doorlopen is.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {