Blocks#

This API Reference Site provides detailed information on how to use the Blocks in VEXcode GO. 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#

drive#

The drive block moves the drivetrain forward or in reverse using the current drive velocity. This block runs continuously until another Drivetrain block interrupts it or the project stops.

aria-description goes here#
  drive [forward v]

Parameters

Description

direction

The direction in which the robot drives, which can be one of the following:

  • forward
  • reverse

Example

aria-description goes here#
  when started :: hat events
  [Drive forward, then stop.]
  drive [forward v]    
  wait (2) seconds
  stop driving

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.