1 sensor using RTOS Timer, another 2 over RTOS Semaphore

Dependents:   Autonomous_quadcopter

Fork of HCSR04 by Antoniolinux B.

Revision:
13:e9b99635aa2d
Parent:
12:6f6469b2f016
--- a/hcsr04.cpp	Tue May 15 10:32:08 2018 +0000
+++ b/hcsr04.cpp	Tue May 22 19:35:58 2018 +0000
@@ -14,6 +14,9 @@
     threadUpdateTimer1 = new RtosTimer(threadWorker1, osTimerPeriodic, this);
     threadUpdateTimer1->start(rate);
     
+    id = Thread::gettid();
+    printf("down sonic gettid 0x%08X \n\r", id);
+    
     //threadUpdateTimer2 = new RtosTimer(threadWorker2, osTimerPeriodic, this);
     //threadUpdateTimer2->start(rate);
 }