PES 2 - Gruppe 1 / Mbed 2 deprecated Robocode_Random

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

Revision:
99:78d87027c85b
Parent:
98:07a8a858e7cd
Child:
100:1bef91db2175
diff -r 07a8a858e7cd -r 78d87027c85b source/Main.cpp
--- 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