Changing the Arm’s Orientation#

Changing the Arm's Orientation

This tutorial walks you through using the move arm to orientation block to rotate the end of the 6-Axis Arm in VEXcode CTE. By the end, you’ll have a project that turns the arm’s end effector.

  1. Attach a move arm to orientation block below the when started block.

A move arm to orientation block connected below when started.#
    when started
        move [arm v] to orientation [pitch v] [0] degrees ▶
  1. Change the orientation parameter to yaw. Pitch tilts the end effector up or down, roll rotates it side to side, and yaw rotates it left or right.

Screenshot of the move arm to orientation block's orientation dropdown open, showing pitch, roll, and yaw options, with yaw selected.
  1. Change the degrees parameter to 90.

Screenshot of the move arm to orientation block, with the degrees field highlighted, changed to 90.
  1. Make sure your arm is connected to VEXcode, then select Start to run the project. The arm’s end effector will turn to a yaw of 90 degrees.

Screenshot of the VEXcode CTE toolbar with the Start button highlighted.