2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
77:7dd154b5ace3
Parent:
75:4cdcd50ee666
Child:
78:abb760e0a935
diff -r f9bcb7ac438f -r 7dd154b5ace3 autoMode.h
--- a/autoMode.h	Sat Oct 10 04:28:27 2015 +0000
+++ b/autoMode.h	Sat Oct 10 08:16:47 2015 +0000
@@ -117,7 +117,17 @@
         stateR = 17;
         stateL = 17;
         step   = 4;
-        CStep  = 6;
+        medge  = 1;
+    }
+    else if(down){   /*opponents start*/
+        resetState();
+        flagf = 1;
+        targ_velocity = speed;
+        targ_sita     = 0.0;
+        sendData(7,17);
+        stateR = 17;
+        stateL = 17;
+        step   = 8;
     }
     else if(square){ /*reset*/
         sendData(7,31);