1 sensor using RTOS Timer, another 2 over RTOS Semaphore
Dependents: Autonomous_quadcopter
Fork of HCSR04 by
Diff: hcsr04.cpp
- Revision:
- 2:8801a3da8693
- Parent:
- 1:53657de3246f
- Child:
- 3:81512ca9a13c
diff -r 53657de3246f -r 8801a3da8693 hcsr04.cpp --- a/hcsr04.cpp Thu Oct 26 15:54:16 2017 +0000 +++ b/hcsr04.cpp Fri Dec 01 11:10:54 2017 +0000 @@ -26,7 +26,7 @@ self->timer.stop(); self->distan = self->timer.read_us() / 58; - Thread::wait(50); + Thread::wait(2); } }