The final program for the #include AIR robot
Dependencies: Biquad HIDScope QEI angleandposition controlandadjust mbed
Fork of includeair by
Diff: main.cpp
- Revision:
- 15:17de575b7385
- Parent:
- 14:4c4f45a1dd23
- Child:
- 16:63320b8f79c2
diff -r 4c4f45a1dd23 -r 17de575b7385 main.cpp --- a/main.cpp Mon Oct 19 09:13:01 2015 +0000 +++ b/main.cpp Mon Oct 19 09:32:44 2015 +0000 @@ -285,7 +285,7 @@ mycontroller.STOP(); switchedmode=true; modecounter++; - if (modecounter==3) { + if (modecounter==4) { modecounter=0; } else { modecounter=modecounter; @@ -405,5 +405,12 @@ } } } + if (modecounter==3) { + if (ledblink==true) { + ledgreen=!ledgreen; + //buttoncontrolmode + } + + } } }