Blocks#

This API Reference Site provides detailed information on how to use the 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 a demonstration of 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 stack block#
    move [forward v]

Parameters

Description

direction

Move the drone in one of the following directions:

  • forward
  • right
  • left
  • reverse

Example

    when started :: hat events
    [Take off and move.]
    take off to (500) mm ▶
    move [forward v]
    wait (2) seconds
    land ▶

Blocks in Subsections#

Some blocks are found in specific subsections that pertain to their particular functionality within a project. For example, blocks that return values or perform actions will be grouped accordingly. Refer to these subsections for detailed information on those blocks.