linetrace saikyou

Dependencies:   RemoteIR TextLCD

Revision:
53:debc8879ba5d
Parent:
52:c868403753e8
Child:
54:f862caf08a7f
--- a/main.cpp	Wed Sep 02 06:56:39 2020 +0000
+++ b/main.cpp	Wed Sep 02 07:18:04 2020 +0000
@@ -83,8 +83,10 @@
     SPEED,          //  8:スピード制御
     LT_R,           //  9:低速右折(ライントレース時)
     LT_L,            // 10:低速左折(ライントレース時)
-    ARIGHT,
-    ALEFT,
+    A1RIGHT,
+    A1LEFT,
+    A2RIGHT,
+    A2LEFT,
 };
 
 /* ピン配置 */
@@ -371,7 +373,7 @@
                 motorL1 = 0.57;
                 motorL2 = LOW;
                 break;
-            case A2LEFT:
+            case A1LEFT:
                 motorR1 = 0.57;
                 motorR2 = LOW;
                 motorL1 = LOW;