12/16用テスト
Dependencies: ATP3012 mbed a HMC US015_2 getGPS
Diff: Function.h
- Revision:
- 11:d00bfdcb7481
- Parent:
- 10:e25e06011fd2
- Child:
- 12:740d999b1fea
--- a/Function.h Thu Dec 09 10:31:34 2021 +0000 +++ b/Function.h Thu Dec 09 11:00:59 2021 +0000 @@ -31,7 +31,7 @@ xbee.printf("distance=%d\r\n", distance); //距離出力 Ultra=0;//超音波off - if(distance < 200) { + if(distance < 1500) { return 1; } else { @@ -126,7 +126,7 @@ xbee.printf("calibration start\r\n"); compass.setCalibrationMode(0x43); Move('4', 0.15); - xbee.printf("mortor mode:4 speed:1\n\r"); + xbee.printf("mortor mode:4 speed:0.15\n\r"); wait(60); Move('1', 0); xbee.printf("mortor mode:1 speed:0\n\r");