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/StartUp.cpp
- Revision:
- 119:eb212467afb0
- Parent:
- 115:720dc5df42a5
- Parent:
- 113:c8ea0cd9b20c
- Child:
- 120:cdf7a6751f9e
--- a/source/StartUp.cpp Fri May 12 08:29:53 2017 +0000
+++ b/source/StartUp.cpp Fri May 12 08:33:04 2017 +0000
@@ -19,7 +19,7 @@
{
if(get_user() == false && stb2) {
- return 47;
+ return 25;
} else {
stb2 = true;
wait_ms(100);
@@ -54,9 +54,10 @@
turn_for_deg(180,1);
} else {
printf("turning...\r\n");
- if(1) { // check if turning complete
- printf("turn finished...\r\n");
- return 35;
+ if(turn_for_deg(0) < 0) { // check if turning complete
+ // printf("turn finished...\r\n");
+
+ return 102;
}
}
return 28;
