Range Finder#
The Ultrasonic Range Finder measures the distance to the nearest object using sound waves. It works by sending out an ultrasonic pulse and measuring how long it takes for the sound to bounce back.
Below is a list of available blocks:
Range Finder found object? – Returns whether the Range Finder detects an object.
Range Finder distance – Returns the distance between the Range Finder and the nearest detected object.
Range Finder found object?#
The Range Finder found object? block returns whether the Range Finder detects an object within its field of view.
True – The Range Finder is detecting an object.
False – The Range Finder is not detecting an object.
<[RangeFinderA v] 发现对象?>
Parameter |
Description |
|---|---|
device |
Which Range Finder to use, configured in the Devices window. |
Range Finder distance#
The Range Finder distance block returns the measured distance to the nearest object detected by the sensor.
([RangeFinderA v] 距离 [毫米 v])
Parameter |
Description |
|---|---|
device |
Which Range Finder to use, configured in the Devices window. |
unit |
The unit that will represent the distance:
|