Example code for the UKESF Headstart robotics lab; code to make the PsiSwarm robot move forward and turn.
Dependencies: PsiSwarm-Headstart mbed
Fork of PsiSwarm_V41 by
Diff: main.cpp
- Revision:
- 8:00558287a4ef
- Parent:
- 7:ef9ab01b9e26
- Child:
- 9:085e090e1ec1
diff -r ef9ab01b9e26 -r 00558287a4ef main.cpp --- a/main.cpp Thu Oct 22 13:28:17 2015 +0000 +++ b/main.cpp Thu Oct 22 15:36:16 2015 +0000 @@ -39,6 +39,11 @@ ///Place user code here that should be run after initialisation but before the main loop void user_code_setup() { + for(int i=0;i<10;i++){ + time_based_turn_degrees(1, 90); + wait(1); + } + out("------------------------------------------------------\n"); out("Beautiful Meme Project Demo Code \n"); out("------------------------------------------------------\n");