在 VEXcode Pro V5 中创建左右转项目

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

此示例程序展示了如何使用 VEXcode Pro Text 对 V5 Clawbot 进行左转和右转编程。

怎么运行的

该程序使用 (degs,units) 指令将机器人转动指定的角度。 可以使用数值指定度数。

您可以使用 指定单位。 正数值可用于将机器人向左转动,正数值可用于将机器人向右移动。

程序中执行的步骤:

  1. 传动系统设置为向左转动 90 度。
  2. 程序将等待 1 秒后再执行下一行代码。
  3. 传动系统设置为使机器人向相反方向转动,即向右旋转 180 度。

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: