ryo seki
/
serialSend5
a
Diff: ultrasonic.cpp
- Revision:
- 1:ed00e9c4ba6e
- Parent:
- 0:62ac378df546
--- a/ultrasonic.cpp Fri Apr 19 09:14:08 2013 +0000 +++ b/ultrasonic.cpp Tue Apr 30 09:06:57 2013 +0000 @@ -20,7 +20,7 @@ DigitalIn PingPin(ultrasonic_pin[i]); timer2.reset(); while(PingPin == 0){ - if(timer2.read_us() > 1000){ //1ms以上応答なし + if(timer2.read_us() > 1500){ //1.5ms以上応答なし ultrasonicValue[i] = PING_ERR; flag = 1; break;