2015_robocon_bteam / Mbed 2 deprecated 2015robot_main_zenkoku

Dependencies:   PID QEI mbed

Revision:
25:e72246ed7ec7
Parent:
24:6d2573d6f2b6
Child:
28:70e45354fbf3
--- a/manualMode.h	Sun Nov 08 04:26:26 2015 +0000
+++ b/manualMode.h	Sun Nov 08 05:10:15 2015 +0000
@@ -74,23 +74,20 @@
 }
 void manualIM920()
 {
-    if(b==7){  /*mode change*/
-        if(edge7){
-            Com.detach();
-            edge7=0;
-            autoflag=1;
-            Indicator4=1;
-            IndicatorAuto=0;
-            Move_l(0.0);
-            Move_r(0.0);
-            direction_controller.setTunings(36.0,3.0,0.0);
-            resetState();
-            flaga=0;
-            step=114;
-            CStep=114;
-            spcount=speed;
-            Com.attach(&Call,RATE);
-        }
+    if(modeflag){  /*mode change*/
+        Com.detach();
+        autoflag=1;
+        Indicator4=1;
+        IndicatorAuto=0;
+        Move_l(0.0);
+        Move_r(0.0);
+        direction_controller.setTunings(36.0,3.0,0.0);
+        resetState();
+        flaga=0;
+        step=114;
+        CStep=114;
+        spcount=speed;
+        Com.attach(&Call,RATE);
     }
     else if(b==5){
         if(edge5){