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:
- 61:b57577b0072f
- Parent:
- 58:1a395b6928ee
- Child:
- 62:628f8a4e857c
- Child:
- 63:87b615e4a842
--- a/source/Main.cpp Tue Apr 18 15:40:21 2017 +0000
+++ b/source/Main.cpp Tue Apr 18 16:19:18 2017 +0000
@@ -1,7 +1,7 @@
#include "Main.h"
-int state = 200;
+int state = 10;
bool positioning_state = 0;
bool mapping_state = 0;
@@ -9,11 +9,11 @@
int main()
{
-
+ printf("start...\r\n");
// while (timer() < 300) {
while (1) {
- wait(0.01f);
+ wait(0.001f);
// 5min
//*******************************************************************************
//Non_state machine driven function
@@ -58,9 +58,11 @@
case 10:
state = idel();
+ printf("idel1...\r\n");
break;
case 11:
state = idel2();
+ printf("idel2...\r\n");
break;
@@ -132,13 +134,12 @@
break;
case 55:
- state = oben_grabber();
+ state = open_grabber();
break;
case 56:
state = close_grabber();
break;
- case 57:
- state = test_color();
+
/*
case 99:
sate = init();
