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:

  • forward – The distance from the front of the drone.
  • downward – The distance from the bottom of the drone.

units

The unit that represents the distance:

  • mm (millimeters)
  • inches

Example

Example coming soon.