aa

Dependencies:   mbed

Revision:
28:479631c2de29
Parent:
27:dd9f27fce7d1
Child:
29:44d5454ce8fa
--- a/System/Process/Process.cpp	Thu Oct 03 05:25:43 2019 +0000
+++ b/System/Process/Process.cpp	Thu Oct 03 05:33:48 2019 +0000
@@ -2529,6 +2529,7 @@
     }
 
     if(lineFase == 0) {
+        LedOut(1);
         motor[TIRE_FL].dir = FOR;
         motor[TIRE_BL].dir = FOR;
         motor[TIRE_BR].dir = BACK;
@@ -2789,6 +2790,7 @@
         motor[TIRE_BR].dir = BRAKE;
         motor[TIRE_FR].dir = BRAKE;
     } else if(lineFase == 6) {  // タオル1 竿検知
+    LedOut(4);
         if(LimitSw::IsPressed(TOW_1L) && LimitSw::IsPressed(TOW_1R)) {
             lineFase = 7;
             motor[TIRE_FL].dir = BRAKE;
@@ -2957,6 +2959,7 @@
         motor[TIRE_FR].dir = BRAKE;
         lineFase = 9;
     } else if(lineFase == 9) {  // 前
+    LedOut(2);
         switch(linePara[LINE_TOW_1]) {
             case 2:
                 tirePWM[TIRE_FL] = 10;
@@ -3200,6 +3203,7 @@
         motor[TIRE_BR].dir = BRAKE;
         motor[TIRE_FR].dir = BRAKE;
     } else if(lineFase == 14) {  // タオル2 竿検知
+    LedOut(4);
         if(LimitSw::IsPressed(TOW_2L) && LimitSw::IsPressed(TOW_2R)) {
             lineFase = 15;
             motor[TIRE_FL].dir = BRAKE;
@@ -3460,6 +3464,7 @@
             lineCheck = false;
         }
     } else if(lineFase==100) {
+        LedOut(6);
         motor[TIRE_FL].dir = FOR;
         motor[TIRE_BL].dir = FOR;
         motor[TIRE_BR].dir = BACK;