Bloques#

This guide provides detailed information on how to use Blocks in VEXcode GO. Here, you will learn how to read and understand each block, with comprehensive descriptions, parameters, and usage examples.

Comprensión de las entradas de bloque#

Cada entrada de bloque en la Referencia de API incluye los siguientes componentes:

  • Nombre e imagen del bloque: este es el nombre del bloque y una imagen del bloque.

  • Descripción: Una breve explicación de lo que hace el bloque.

  • Parameters: A table showing all the available parameters for that block with expanded drop-downs.

  • Ejemplo: Proporciona una imagen que demuestra cómo utilizar el bloque en VEXcode.

Ejemplo de entrada de bloque#

move Arm to position#

The move Arm to position block moves the 6-Axis Arm to a specified x, y, and z coordinate.

mover [brazo v] a la posición x:[120] y:[0] z:[100] [mm v] ▶

Parameter

Description

x

The x-coordinate of the target position.

y

The y-coordinate of the target position.

z

The z-coordinate of the target position.

unit

Selects the unit for coordinates:

  • mm — millimeters
  • inches

expanding arrow

By default, this is a waiting block, so the 6-Axis Arm will finish moving before running the next block. To make the 6-Axis Arm start moving and immediately run the next block right away, expand the block to say and don’t wait.

Example

cuando empezó
[Move arm to standard position at start of project.]
mover [brazo v] a la posición x:(120) y:(120) z:(75) [mm v] ▶