2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
40:5d4e6d0e2a99
Parent:
35:2db63dec2a67
Child:
47:46db7f076cea
--- a/autoMode.h	Wed Sep 23 08:03:10 2015 +0000
+++ b/autoMode.h	Thu Sep 24 04:48:42 2015 +0000
@@ -12,8 +12,8 @@
     else if(down) targ_velocity=-speed;
     else if(right) targ_velocity=0.0,targ_sita=0.0;
     else if(left) targ_velocity=0.0,targ_sita=PI/2.0;
-    else if(r1) targ_sita=0.0;
-    else if(l1) targ_sita=PI/2.0;
+    else if(r1) sendData(1,4);
+    else if(l1) sendData(1,5);
     else if(circle) {
         if(edge_circle) edge_circle=0,autoflag=0,Indicator4=0,IndicatorAuto=1;
     } else if(cross) {