1 sensor using RTOS Timer, another 2 over RTOS Semaphore
Dependents: Autonomous_quadcopter
Fork of HCSR04 by
Diff: hcsr04.h
- Revision:
- 13:e9b99635aa2d
- Parent:
- 12:6f6469b2f016
--- a/hcsr04.h Tue May 15 10:32:08 2018 +0000 +++ b/hcsr04.h Tue May 22 19:35:58 2018 +0000 @@ -56,11 +56,14 @@ Timer timerLimit; Timer timer2; + osThreadId id; + RtosTimer *threadUpdateTimer1; RtosTimer *threadUpdateTimer2; float distan1; uint32_t distan2; + bool tooLong; }; #endif \ No newline at end of file