CanSat-C 2021 / Mbed 2 deprecated cansatC_test2_xbee2

Dependencies:   ATP3012 mbed a HMC US015_2 getGPS

Revision:
11:d00bfdcb7481
Parent:
10:e25e06011fd2
Child:
12:740d999b1fea
--- a/main.cpp	Thu Dec 09 10:31:34 2021 +0000
+++ b/main.cpp	Thu Dec 09 11:00:59 2021 +0000
@@ -47,8 +47,8 @@
                 while(FrontGet()) {
                     xbee.printf("frontget\n\r");
                     Move('1', 0);      //停止
-                    Move('4', 0.5);    //時計回り回転
-                    wait(1);
+                    Move('4', 0.2);    //時計回り回転
+                    wait(0.5);
                     Move('1', 0);      //回転停止
                     xbee.printf("front_avoid_rotate\n\r");
                 }
@@ -68,7 +68,7 @@
                     if(direction < 20 || direction > 340) {
                         xbee.printf("direction finish\n\r");
                         Move('1', 0);   //停止
-                        wait(5);
+                        Move('2', 0.5);
                         xbee.printf("now_angle=%f\r\n", direction);
                         break;
                         }