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:
- 33:8a98f8b9d859
- Parent:
- 32:777976c4d733
diff -r 777976c4d733 -r 8a98f8b9d859 source/main.cpp
--- a/source/main.cpp Thu Mar 16 12:52:41 2017 +0000
+++ b/source/main.cpp Mon Mar 20 14:11:46 2017 +0000
@@ -11,11 +11,12 @@
{
- while (timer() < 300) { // 5min
- /*********************************************************************************
- Non_state machine driven function
- This functions will be called every cycle, use for safety and sensor functipons
- **********************************************************************************/
+ while (timer() < 300) {
+ */// 5min
+ //*******************************************************************************
+ //Non_state machine driven function
+ //This functions will be called every cycle, use for safety and sensor functipons
+ //*******************************************************************************
safty() {
@@ -32,14 +33,14 @@
mapping();
}
- /*********************************************************************************
- state machine driven function
- This functions will only be called when their state is active.
- The state machine will be in the same state until this action is completed or
- a safty function kicks in and stops the current function.
- Every function will return the next active state upon its transition table.
- State and Transition Table can be found in the State_Machine.xlsx
- **********************************************************************************/
+ //*******************************************************************************
+ //state machine driven function
+ //This functions will only be called when their state is active.
+ //The state machine will be in the same state until this action is completed or
+ //a safty function kicks in and stops the current function.
+ //Every function will return the next active state upon its transition table.
+ //State and Transition Table can be found in the State_Machine.xlsx
+ //*******************************************************************************
switch (state) {
case 0:
state = emergency_shutdown();
