Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Robocode by
Diff: source/Movement.cpp
- Revision:
- 95:1c6867536350
- Parent:
- 94:0381e8b1beda
- Child:
- 99:78d87027c85b
diff -r 0381e8b1beda -r 1c6867536350 source/Movement.cpp
--- a/source/Movement.cpp Tue May 02 15:29:50 2017 +0000
+++ b/source/Movement.cpp Wed May 03 06:22:49 2017 +0000
@@ -190,7 +190,7 @@
{
float upper = getDistanceIR(2); // get distance from upper Center Sensor
float lower = getDistanceIR(3); // get distance from Lower Center Sensor
-
+ printf("Current Search State: >%d<\r\n",search_state);
switch (search_state) {
case 0: //first cycle right
turn_for_deg(60.0f); // call function and start turning
@@ -249,6 +249,7 @@
return 50; //main state machine set as Grabbing
default:
+ printf("default State - move in search for brick\r\n");
// error
break;
}
