Library to use the ultrasonic sensor
Dependents: test_ultrasonic AEB Car_Simulator
Diff: Ultrasonic.cpp
- Revision:
- 5:549b453cd6ce
- Parent:
- 4:8c97476a5ebf
diff -r 8c97476a5ebf -r 549b453cd6ce Ultrasonic.cpp --- a/Ultrasonic.cpp Sun Jun 05 14:29:33 2016 +0000 +++ b/Ultrasonic.cpp Sat Jul 09 12:14:55 2016 +0000 @@ -37,7 +37,7 @@ { timeout.attach(this, &Ultrasonic::timeout_err, 0.05); _trigger = 1; - wait_us(10); + wait_us(500); _trigger = 0; }