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:
- 107:02bc5b4e67b7
- Parent:
- 100:1bef91db2175
- Child:
- 112:c7afe49752b9
diff -r 02d3327bf76a -r 02bc5b4e67b7 source/Main.cpp
--- a/source/Main.cpp Fri May 05 10:48:36 2017 +0000
+++ b/source/Main.cpp Fri May 05 13:31:04 2017 +0000
@@ -74,7 +74,7 @@
break;
case 16:
state = inital_arm_positioning();
- state = 47;
+ state = 102;
break;
case 17:
state = initial_positioning();
@@ -150,13 +150,13 @@
state = 101;
break;
case 102:
- turn_for_deg((360*5));
+ move_for_distance_with_radius(1,-0.19);
state = 103;
break;
case 103:
- float deg = turn_for_deg(0);
- if(deg < 0) {
- printf("remaining deg %f\r\n", deg);
+ float distance = move_for_distance_with_radius(0,0);
+ if(distance < 0) {
+ //printf("remaining deg %f\r\n", deg);
stop_turn();
state = 11;
}
