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
drop/hold payload — Releases payloads or allows payloads to be collected.
Action#
drop/hold payload#
The drop/hold payload block performs an action with the attached module. The behavior of the block will change depending on the attached module.
Note: Only the Motorized Hook Module and the Magnet Module can be controlled with this block.
module drop/hold stack block#
module [drop v] payload
Parameters |
Description |
---|---|
state |
The state to put the module in:
|
Example
when started :: hat events
[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 ▶