2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
88:cbed08732872
Parent:
87:6b6b6611d33f
Child:
89:048a72382b0a
diff -r 6b6b6611d33f -r cbed08732872 autoMode.h
--- a/autoMode.h	Wed Oct 14 09:05:46 2015 +0000
+++ b/autoMode.h	Wed Oct 14 10:05:55 2015 +0000
@@ -28,7 +28,7 @@
 //            sendData(7,70);
             sendData(5,69);
             wait(0.1);
-            sendData(4,69);
+            sendData(4,70);
             stateR = 69;
             stateL = 69;
             step   = 0;
@@ -46,8 +46,8 @@
             /*sendData(4,61);
             wait(0.1);
             sendData(5,58);*/
-            stateR = 61;
-            stateL = 61;
+            stateR = 59;
+            stateL = 59;
             step   = 5;
             CStep  = 6;
             flaga  = 1;
@@ -59,9 +59,12 @@
             resetState();
             flagf = 1;
             targ_velocity = speed;
-            sendData(7,62);
-            stateR = 61;
-            stateL = 61;
+//            sendData(7,70);
+            sendData(5,70);
+            wait(0.1);
+            sendData(4,70);
+            stateR = 70;
+            stateL = 70;
             step   = 15;
             CStep  = 15;
             flaga  = 1;