linetrace saikyou

Dependencies:   RemoteIR TextLCD

Revision:
31:3665282561d6
Parent:
30:c80da0ecc260
Child:
32:049d9ba081d4
--- a/main.cpp	Thu Aug 06 03:08:28 2020 +0000
+++ b/main.cpp	Thu Aug 06 03:13:05 2020 +0000
@@ -1096,6 +1096,7 @@
         }
         if(mode != AVOIDANCE && avoi_thread->get_state() != Thread::Deleted){
             avoi_thread->terminate();
+            servo.pulsewidth_us(1450);      // サーボを中央位置に戻す
         }
         sprintf(channel, "%d",linkID);
         if (strstr(webdata, "GET") != NULL) {