readEchoTime
Read echo time of ultrasound waves
Description
measures the time taken by the ultrasound waves reflected from the object to reach
the sensor, represented by the connection object time
= readEchoTime(ultrasonicObj
)ultrasonicObj
.
The distance to the object is computed from the time
measured,
using the equation distance = (time x speedOfSound)/2
.