Module#

Introduction#

The VEX AIR Drone features a module port, which can connect to various VEX AIR Modules. These allow the drone to drop and hold different payloads.

Below is a list of available blocks:

Actions

Action#

drop/hold payload#

The drop/hold payload stack block releases or holds a payload using the attached module — the Motorized Hook Module opens or closes its hook, and the Magnet Module turns its magnet on or off.

Note: This block only works with the Motorized Hook Module and the Magnet Module.

module drop/hold stack block#
    module [drop v] payload

Parameters

Description

state

The state to put the module in: drop releases all held payloads. hold allows payloads to be collected.

Example

    when started
    [Demonstrate the Motorized Hook Module lowering, then raising.]
    take off to [800] [mm v] ▶
    wait [1] seconds
    module [hold v] payload
    wait [2] seconds
    module [drop v] payload
    land ▶