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:
- 99:78d87027c85b
- Parent:
- 98:07a8a858e7cd
- Child:
- 100:1bef91db2175
--- a/source/Main.cpp Wed May 03 06:59:34 2017 +0000
+++ b/source/Main.cpp Wed May 03 08:47:21 2017 +0000
@@ -41,8 +41,9 @@
//Every function will return the next active state upon its transition table.
//State and Transition Table can be found in the State_Machine.xlsx
//*******************************************************************************
+
+
//printf("state: %d\r\n",state);
- printf("State - %d\r\n",state);
switch (state) {
case 0:
state = emergency_shutdown();
@@ -73,7 +74,7 @@
break;
case 16:
state = inital_arm_positioning();
- state = 104;
+ state = 100;
break;
case 17:
state = initial_positioning();
@@ -160,12 +161,7 @@
state = 11;
}
break;
- case 104:
- if(get_user() == false) {
- printf("Distance read: %f",getDistanceIR(3));
- }
- state = 104;
- break;
+
}
}
}
\ No newline at end of file
