2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
87:6b6b6611d33f
Parent:
86:5f0b065cb4d3
Child:
88:cbed08732872
--- a/autoMode.h	Wed Oct 14 07:56:09 2015 +0000
+++ b/autoMode.h	Wed Oct 14 09:05:46 2015 +0000
@@ -50,6 +50,7 @@
             stateL = 61;
             step   = 5;
             CStep  = 6;
+            flaga  = 1;
         }
     }   
     else if(b==8){  /*opponents start*/
@@ -58,11 +59,12 @@
             resetState();
             flagf = 1;
             targ_velocity = speed;
-            sendData(7,61);
+            sendData(7,62);
             stateR = 61;
             stateL = 61;
             step   = 15;
             CStep  = 15;
+            flaga  = 1;
         }
     }
     else if(b==9){  /*stop*/
@@ -128,6 +130,7 @@
             autoflag=0;
             Indicator4=0;
             IndicatorAuto=1;
+            flaga  = 0;
         }
     }
     else if(up){  /*start*/
@@ -144,6 +147,7 @@
             stateL = 69;
             step   = 0;
             CStep  = 1;
+            flaga  = 1;
         }
     }
     else if(right){  /*middle start*/
@@ -160,6 +164,7 @@
             stateL = 61;
             step   = 5;
             CStep  = 6;
+            flaga  = 1;
         }
     }
     else if(down){   /*opponents start*/
@@ -173,6 +178,7 @@
             stateL = 70;
             step   = 15;
             CStep  = 15;
+            flaga  = 1;
         }
     }
     else if(square){ /*reset*/