Range#
Introduction#
The VEX AIR Drone features 2 Range Sensors, one on the front of the drone, and one on the bottom. These sensors allow the drone to detect the distance between it and the nearest object.
Below is a list of all available blocks:
distance - Returns the distance from a Range Sensor.
distance#
The distance block returns the distance between a Range Sensor and the nearest object.
move forward stack block#
(distance [forward v] range in [mm v])
Parameters |
Description |
---|---|
range |
The Range Sensor to use:
|
units |
The unit that represents the distance:
|
Example
Example coming soon.