Skip to main content

Change targetY

  1. Remove the (Add) block from the ‘x’ parameter in the [Linear move] block by dragging it into the workspace.

    Remove add block
  2. Place the ‘targetX’ variable back into the ‘x’ parameter of the [Linear move] block.

    Replace targetX variable
  3. Move the ‘targetY’ variable from the ‘y’ parameter of the [Linear move] block to the (Add) block.

    Move targetY to add
  4. Place the (Add) block into the ‘y’ parameter of the [Linear move] block.

    Move add to Y
  5. Download and run the project.

    Download and run

    Note: if the dry-erase marker is not drawing well, adjust the z-axis values to provide more force.

  6. Observe that the arm mounted on the VEX V5 Workcell drew a straight line (linear motion) one inch along the y-axis.

    y1
  7. Stop the project.

    Stop the project