区块#
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.
理解区块条目#
API 参考中的每个块条目都包含以下组件:
块名称和图像:这是块的名称和块的图像。
描述:对该块功能的简要说明。
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.
驱动 [向前 v]
Parameters |
Description |
---|---|
direction |
The direction in which the robot drives, which can be one of the following:
|
Example
当开始 :: hat events
[Drive forward, then stop.]
驱动 [向前 v]
等待 (2) 秒
驱动停止
子部分中的块#
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.