区块#

This guide provides detailed information on how to use Blocks in VEXcode AIR. 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 goes here#
移动 [向前 v]

参数

描述

方向

Moves the drone in one of the following directions:

  • forward
  • right
  • left
  • reverse

例子

aria-description goes here#
当开始
[Take off and move forward.]
起飞至 (500) [毫米 v] ▶
移动 [向前 v]
等待 (2) 秒
土地 ▶