Main Content
readBeaconProximity
Read distance and heading from infrared sensor to beacon
Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Description
[
measures the relative proximity and heading from the infrared sensor to the infrared
beacon. The function returns the proximity as a value from 0 to 100 (near to far),
and returns the heading as a value from -25 to 25 (left to right). The maximum range
from the sensor to the beacon is approximately 200 cm (79 inches).proximity
,heading
]
= readBeaconProximity(myirsensor
,channel
)