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:
- 19:77f7089dca87
- Parent:
- 18:5921c1853e8a
- Child:
- 21:e5ab8c56a769
--- a/main.cpp Fri Jan 08 19:10:52 2016 +0000 +++ b/main.cpp Tue Jan 12 17:28:12 2016 +0000 @@ -52,7 +52,7 @@ char choose_program_mode = 0; char program_count = 8; char program_selection; -int flocking_headings[8]; +char flocking_headings[8]; // Beacon heading of each robot (limited to 256 discrete values) float battery_low_threshold = 3.60; // Threshold at which to interrupt program and start recharging routine: suggest 3.55 float battery_high_threshold = 3.95; // Threshold at which to end battery recharging routine and resume normal program: suggest 4.0