机器人专用积木#

所有标准 VEXcode VR 模块均可用于 VIQRC 虚拟技能 - Pitching In 游乐场。

运动#

这个游乐场的块将可以访问所有运动块的 IntakeMotorCatapultMotorCatapultTensionMotor 参数。

当为运动块选择方向时,intake 将使电机组正向旋转,outtake 将使电机组反向旋转。

Spin#

Spin 块用于无限旋转电机。

这是一个非等待块,允许任何后续块无延迟地执行。

Robot motion block for spinning motors indefinitely in VEXcode VR, used in the VIQRC Virtual Skills Playground.

选择要使用的电机。

VEXcode VR 框图展示了 Pitching In Playground 中机器人运动的电机旋转命令和参数。

选择电机移动的方向。

该图展示了 VEXcode VR 机器人专用模块中电机的旋转方向选项。

在此示例中,进气电机将沿进气方向旋转 1 秒钟,然后停止。

Image illustrating the Spin block in VEXcode VR, demonstrating motor spinning for intake direction.

Spin for#

Spin for 块用于使电机旋转给定的距离。

这可以是非等待等待块,取决于是否使用并且不等待选项。

Image of a robot block diagram illustrating the Spin for block in VEXcode VR for motor control.

选择要使用的电机。

该图展示了用于控制机器人编程中电机运动的 VEXcode VR Spin 模块。

选择电机移动的方向。

VIQRC 虚拟技能投球游乐场中用于电机控制的 VEXcode VR Spin 模块图示。

通过输入一个值并选择测量单位(度或圈)来设置电机旋转的距离。

VEXcode VR Spin 块示例展示了机器人编程环境中电机旋转到设定位置的过程。

默认情况下,旋转块会阻止任何后续块的执行,直到其完成为止。通过展开旋转块以显示不等待,块将在电机转动时继续执行。

Diagram illustrating the Spin for block in VEXcode VR, demonstrating motor control and movement parameters.

在这个例子中,进气电机将沿进气方向旋转 180 度。

VEXcode VR Spin example showing intake motor spinning in the intake direction for 1 second before stopping.

Spin to position#

旋转到位置块用于将电机旋转到设定位置。

这可以是非等待等待块,取决于是否使用并且不等待选项。

Image of VEXcode VR Spin to Position block, illustrating motor control for precise positioning in robotics programming.

选择要使用的电机。

用于机器人编程中电机控制的 VEXcode VR 旋转到位置模块图。

通过输入一个值并选择测量单位(度或圈)来设置电机旋转的距离。

该图展示了 VEXcode VR 编程中用于机器人电机控制的“旋转到位置”模块。

默认情况下,旋转到指定位置积木会阻止所有后续积木的执行,直到其完成。通过展开旋转到指定位置积木以显示不等待,积木将在电机移动时继续执行。

Robot block diagram illustrating the Spin to Position function for motor control in VEXcode VR.

在这个例子中,进气电机将旋转到 180 度的位置。

Example of VEXcode VR Spin to Position block for motor control in Robot Specific Blocks context.

Stop Motor#

停止电机块用于停止电机移动。

这是一个非等待块,允许任何后续块无延迟地执行。

Image of a VEXcode VR block labeled Stop Motor" used to halt motor movement in programming.

选择要使用的电机。

该图显示了 VEXcode VR 中用于控制机器人运动功能的“停止电机”模块。

在此示例中,进气电机将沿进气方向旋转 1 秒钟,然后停止。

Image illustrating the Spin block in VEXcode VR, demonstrating motor spinning for intake direction.

Set Motor position#

设置电机位置块用于将电机的编码器位置设置为输入的值。

这是一个非等待块,允许任何后续块无延迟地执行。

VEXcode VR block diagram for setting motor position, velocity, and timeout in robot programming.

选择要使用的电机。

标有“设置电机位置”的 VEXcode VR 块图像,用于控制机器人中的电机编码器位置。

设置要使用的测量单位,度或圈。

该图说明了 VEXcode VR 中用于控制机器人中电机位置的“设置电机位置”模块。

在此示例中,电机的编码器位置在电机旋转到 0 度位置之前设置为 90 度。

Example of setting motor position in VEXcode VR using the Set Motor Position block for robot motion control.

Set Motor velocity#

设置电机速度块用于设置电机的速度。

这是一个非等待块,允许任何后续块无延迟地执行。

Set Motor Velocity block in VEXcode VR for controlling motor speed in robot programming.

选择要使用的电机。

该图说明了在 VEXcode VR 编程中用于控制电机速度的“设置电机速度”模块。

设置电机速度块将接受-100%到100%的范围。

在此示例中,电机的速度设置为 75%,然后沿进气方向旋转 1 圈。

Example of setting motor velocity in VEXcode VR for robot motion control.

Set Motor timeout#

设置电机超时块用于设置 VEX IQ 电机运动块的时间限制。

这可以防止未到达预定位置的运动块阻止后续块的运行。

这是一个非等待命令,允许任何后续命令无延迟地执行。

VEXcode VR Set Motor Timeout block for controlling motor movement duration in robotic applications.

选择要使用的电机。

图示说明了在 VEXcode VR 中控制电机运动的“设置电机超时”模块。

在此示例中,电机超时设置为 2 秒,然后电机沿出风方向旋转 3 圈。

Example of setting motor timeout in VEXcode VR for controlling motor movement duration.

传感#

Fling 可以使用标准大脑、传动系统、保险杠、距离感应块。

Motor Sensing#

电机已完成#

电机已完成块用于报告所选电机或电机组是否已完成其运动。

Image of a VEXcode VR block labeled Motor is done

选择要使用的电机或电机组。

标有“电机完成”的 VEXcode VR 块图像,指示电机是否已在机器人程序中完成其运动。

The Motor is done block reports True when the selected Motor or Motor Group has completed its movement.

The Motor is done block reports False when the selected Motor or Motor Group has not completed its movement.

电机已完成块用于具有六边形(六面)空间的块中。

示例即将推出

电机旋转#

电机正在旋转块用于报告所选电机或电机组是否正在移动。

Spin block for motor control in VEXcode VR, demonstrating motor spinning functionality in the Pitching In Playground.

选择要使用的电机或电机组。

标有“旋转”的 VEX 机器人电机模块图像,用于在编程中控制电机运动。

The Motor is spinning block reports True when the selected Motor or Motor Group is moving.

The Motor is spinning block reports False when the selected Motor or Motor Group is not moving.

马达正在旋转块用于具有六边形(六面)空间的块中。

示例即将推出

电机位置#

电机位置块用于报告电机或电机组中第一个电机的位置。

VEXcode VR Spin to Position block illustration for controlling motor positions in robotics programming.

选择要使用的电机或电机组。

VIQRC 虚拟技能 - 投球游乐场中 VEXcode VR 模块的电机位置设置图。

选择使用的单位,度或圈。

VEXcode VR 中用于控制电机位置和运动的 Slapshot 电机位置单元示意图。

电机位置块用于具有圆形空间的块中。

示例即将推出

电机转速#

电机速度块用于报告电机或电机组中第一个电机的当前速度。

VEXcode VR block for setting motor velocity in a robotics programming environment.

选择要使用的电机或电机组。

VEXcode VR 框图展示了 VIQRC 虚拟技能游乐场中机器人运动控制的电机速度设置。

电机速度块用于具有圆形空间的块中。

示例即将推出

Color Sensing#

物体靠近#

物体在附近块用于报告颜色传感器是否检测到附近的物体。

Image illustrating the VEXcode VR block for sensing if an object is near using a Color Sensor.

The Object is near block reports True when the Color Sensor detects an object or surface close to the front of the sensor.

The Object is near block reports False when the Color Sensor detects empty space in front of the sensor.

物体在附近块用于具有六边形(六面)空间的块中。

示例即将推出

颜色检测#

颜色检测块用于报告颜色传感器是否检测到附近的物体。

Image showing VEXcode VR blocks for color detection and motor control in the Pitching In Playground.

选择颜色传感器应检测的颜色。

VEXcode VR 中的颜色检测功能适用于 Pitching In Playground 中的机器人运动和感应块。

The Color detects block reports True when the Color Sensor detects the selected color.

The Color detects block reports False when the Color Sensor detects a different color than the one selected.

颜色检测块用于具有六边形(六面)空间的块中。

示例即将推出

颜色#

颜色块用于报告颜色传感器检测到的颜色的名称。

Image showing the color detection block used in VEXcode VR for reporting detected colors by the Color Sensor.

块的颜色用于具有圆形空间的块中。

示例即将推出

亮度#

亮度块用于报告颜色传感器检测到的光量。

brightness_of_block

亮度块用于具有圆形空间的块中。

示例即将推出

色调#

色调块用于报告颜色传感器检测到的颜色的色调。

色调 报告的范围从 0 到 360。

Hue of block in VEXcode VR, used to report the hue of color detected by the Color Sensor, ranging from 0 to 360.

色调块用于具有圆形空间的块中。

示例即将推出