回避行動用のプログラムです。 (モータードライバー+超音波センサー)
Dependencies: ATP3012 mbed a HMC US015_2 getGPS
Diff: Function.h
- Revision:
- 1:1c4c7cd015e8
- Parent:
- 0:99f4fe3e21c6
--- a/Function.h Wed Dec 01 08:14:01 2021 +0000 +++ b/Function.h Fri Dec 03 08:24:39 2021 +0000 @@ -30,7 +30,7 @@ xbee.printf("distance=%d\r\n", distance); //距離出力 Ultra=0;//超音波off - if(distance < 500) { + if(distance < 1500) { return 1; } else {