Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ATP3012 mbed a HMC US015_2 getGPS
Diff: main.cpp
- 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;
}