Waiting and Non-waiting Blocks in VEXcode GO

Non-waiting blocks

Non-waiting blocks have the stack continue even if the block’s behavior is not yet complete.

The [Drive] block is a good example of a non-waiting block. In the example below, the Code Base does not move because the [Drive] block begins, but then the [Stop driving] block stops it before the motors can move.

VEXcode GO blocks project that consists of a When started block, a Drive forward block, and a Stop driving block.

Non-waiting blocks are useful when you want to perform multiple behaviors at the same time.


Waiting blocks

Waiting blocks pause the rest of the stack until that block’s behavior has been completed.

Most waiting blocks are found among the Motion and Drivetrain blocks.

If a Code Base needs to drive in a 300mm square, you can use waiting blocks to have the Code Base carry out each behavior individually.

VEXcode GO blocks project that drives the robot in a square. The stack consists of a When Started block followed by 4 pairs of alternating Drive forward for 300 mm blocks and Turn right for 90 degrees blocks.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: