区块#
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 参考中的每个块条目都包含以下组件:
块名称和图像:这是块的名称和块的图像。
描述:对该块功能的简要说明。
参数:一个表格,显示该块的所有可用参数,并带有扩展下拉菜单。
Example: Provides an image demonstrating how to use the block in VEXcode.
块条目示例#
驾驶#
驱动 模块使用当前的 驱动速度 使传动系统向前或向后移动。该模块持续运行,直到另一个传动系统模块中断它或项目停止。
aria-description 放在这里#
驱动 [向前 v]
参数 |
描述 |
|---|---|
方向 |
The direction in which the robot drives:
|
例子
aria-description 放在这里#
当开始
[Drive forward, then stop.]
驱动 [向前 v]
等待 (2) 秒
驱动停止