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/Main.cpp
- Revision:
- 54:453f24775644
- Parent:
- 47:728502df3cb6
- Child:
- 58:1a395b6928ee
diff -r 56399c2f13cd -r 453f24775644 source/Main.cpp
--- a/source/Main.cpp Tue Apr 18 11:50:02 2017 +0000
+++ b/source/Main.cpp Tue Apr 18 13:11:55 2017 +0000
@@ -106,17 +106,15 @@
state = moving();
break;
case 41:
- state = moving_forward_for_distance();
+ state = move_forward_for_distance(0);
break;
case 42:
- state = moving_backward_for_distance();
+ state = move_backward_for_distance();
break;
case 43:
- state = turn_left_for_deg();
+ state = turn_for_deg(0);
break;
- case 44:
- state = turn_right_for_deg();
- break;
+
case 46:
state = move_to_next_coord();
