区块#

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.

理解区块条目#

API 参考中的每个块条目都包含以下组件:

  • 块名称和图像:这是块的名称和块的图像。

  • 描述:对该块功能的简要说明。

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

  • 示例:提供一个图像,演示如何在 VEXcode 中使用该块。

块条目示例#

move Arm to position#

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

移动 [手臂 v] 到位置x:[120] y:[0] z:[100] [毫米 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

当开始
[Move arm to standard position at start of project.]
移动 [手臂 v] 到位置x:(120) y:(120) z:(75) [毫米 v] ▶