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 objecttime
= readEchoTime(ultrasonicObj
)ultrasonicObj
. The distance to the object is computed from thetime
measured, using the equationdistance = (time x speedOfSound)/2
.