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:
- 133:0046d2224e39
- Parent:
- 132:b0034d948385
- Child:
- 135:644346924339
--- a/source/Main.cpp Mon May 15 15:00:20 2017 +0000
+++ b/source/Main.cpp Tue May 16 13:36:36 2017 +0000
@@ -73,29 +73,28 @@
break;
case 16:
state = inital_arm_positioning();
- //state = 47; // change state here for test cases
break;
- case 17:
+ /*case 17:
state = initial_positioning();
- break;
+ break;*/
case 25:
- state = 26;
+ state = 28;
game_timer.start();
break;
- case 26:
+ /*case 26:
state = 27;
positioning_state = 1;
break;
case 27:
state = 28;
//mapping_state = 1;
- break;
+ break;*/
case 28:
state = initial_turn();
break;
-
+/*
case 35:
state = select_target();
break;
@@ -115,18 +114,26 @@
case 45:
state = move_to_brick_by_coordlist();
break;
+ */
case 47:
state = move_in_search_for_brick();
break;
+
+/*
case 48:
state = generate_fake_target();
break;
-
+*/
case 50:
state = grabbing();
break;
+
+ case 60:
+ state = move_random();
+ case 61:
+ state = swerve_go();
/******************************************************************************/
