cansat_B 2019 / Mbed 2 deprecated CanSatB2019_main_1212_2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
saeichi
Date:
Thu Dec 12 12:35:54 2019 +0000
Parent:
10:b190babac114
Commit message:
main;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 09 10:43:47 2019 +0000
+++ b/main.cpp	Thu Dec 12 12:35:54 2019 +0000
@@ -153,6 +153,8 @@
     wait(1);
     
     while(1) {
+         left1=0;
+         right1=0;
          printf("超音波on\r\n 焦電off\r\n" )  ;
          hs.TrigerOut();
          wait(1);
@@ -273,6 +275,12 @@
           left1 = 60; //左モーター50%
           right1 = 100;//右モーター50%
           printf("右折\r\n");
+          wait(3);
+          left1=100;
+          right1=100;
+          wait(5);
+          left1=0;
+          right1=0;
          }
 
     }