2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
65:cebdfc0184d7
Parent:
64:a98fe602c26d
Child:
66:14df82661dfa
--- a/main_ps3.cpp	Sun Oct 04 10:17:46 2015 +0000
+++ b/main_ps3.cpp	Mon Oct 05 07:53:02 2015 +0000
@@ -72,13 +72,13 @@
             if((step==3)&&(x<10.0)) targ_velocity=0.0,step=8;
             
             if((step==4)&&((5700.0>x)&&(x>600.0))) targ_sita=0.015,step=5; /*middle*/
-            if((step==5)&&(x>5100.0)) { /*middle shoot*/
+            if((step==5)&&(x>4850.0)) { /*middle shoot*/
                 targ_velocity=-speed;
                 step=6;
                 sendData(1,5);
                 flagf=0;
             }
-            if((step==6)&&(x<2000.0)) targ_sita=PI/4,step=7;
+            if((step==6)&&(x<1650.0)) targ_sita=PI/4,step=7;
             if((step==7)&&(x<10.0)) targ_velocity=0.0,step=8;
             
             if((x>3000.0)&&(CStep==1)) CStep=2,sendData(1,1); /*nomal*/