2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
86:5f0b065cb4d3
Parent:
85:dd18a2d79956
Child:
87:6b6b6611d33f
diff -r dd18a2d79956 -r 5f0b065cb4d3 autoMode.h
--- a/autoMode.h	Tue Oct 13 07:27:26 2015 +0000
+++ b/autoMode.h	Wed Oct 14 07:56:09 2015 +0000
@@ -16,6 +16,7 @@
             autoflag=0;
             Indicator4=0;
             IndicatorAuto=1;
+            flaga=0;
         }
     }
     else if(b==6){ /*start*/
@@ -32,6 +33,7 @@
             stateL = 69;
             step   = 0;
             CStep  = 1;
+            flaga  = 1;
         }
     }
     else if(b==5){ /*middle start*/
@@ -40,7 +42,7 @@
             resetState();
             flagf = 1;
             targ_velocity=speed;
-            sendData(7,61);
+            sendData(7,59);
             /*sendData(4,61);
             wait(0.1);
             sendData(5,58);*/
@@ -56,9 +58,9 @@
             resetState();
             flagf = 1;
             targ_velocity = speed;
-            sendData(7,70);
-            stateR = 70;
-            stateL = 70;
+            sendData(7,61);
+            stateR = 61;
+            stateL = 61;
             step   = 15;
             CStep  = 15;
         }