2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
29:03bb1ddbe456
Parent:
28:c6ed6fb95795
Child:
30:2923c6879e5f
--- a/autoMode.h	Fri Sep 18 06:40:32 2015 +0000
+++ b/autoMode.h	Fri Sep 18 08:55:05 2015 +0000
@@ -11,12 +11,13 @@
     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) sendData(1,1);
-    else if(l1) sendData(1,2);
-    else if(square){
-        if(edge_square) edge_square=0,autoflag=0,Indicator4=0;
+    else if(r1) targ_sita=0.0;
+    else if(l1) targ_sita=PI/2.0;
+    else if(circle){
+        if(edge_circle) edge_circle=0,autoflag=0,Indicator4=0;
     }
     else if(cross){
+        Motor_swing=0;
         sita=PI/4.0,x=0.0,y=0.0;
         targ_velocity=0.0;
         targ_sita=PI/4.0;