Blocks#
This guide provides detailed information on how to use Blocks in VEXcode AIR. Here, you will learn how to read and understand each block, with comprehensive descriptions, parameters, and usage examples.
Understanding the Block Entries#
Each block entry in the API Reference includes the following components:
Block Name and Image: This is the name of the block and an image of the block.
Description: A brief explanation of what the block does.
Parameters: A table showing all the available parameters for that block with expanded drop-downs.
Example: Provides an image demonstrating how to use the block in VEXcode.
Example Block Entry#
move#
The move block moves the drone in four specific directions using the current move velocity.
move [forward v]
Parameters |
Description |
|---|---|
direction |
Moves the drone in one of the following directions:
|
Example
when started
[Take off and move forward.]
take off to (500) [mm v] ▶
move [forward v]
wait (2) seconds
land ▶