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/Positioning.cpp
- Revision:
- 79:92b9d083322d
- Parent:
- 72:4e8a151d804e
- Child:
- 111:b3270806629f
--- a/source/Positioning.cpp Tue Apr 25 11:42:45 2017 +0000
+++ b/source/Positioning.cpp Wed Apr 26 07:30:03 2017 +0000
@@ -128,7 +128,7 @@
while (direction_r >= 360) direction_r -= 360;
while (direction_r < 0) direction_r += 360;
}
-/*
+
//left
if(dist_l < last_dist_l) {
last_dist_l = dist_l;
@@ -161,11 +161,11 @@
//finished
return 17;
- }*/
+ }
}
}
// not finished
- return 16;
+ return 11;
}
