ADM Activity 1.1.4

Coding Movement

Build simple motion sequences using VEXcode Python.

Lesson Overview

In this lesson, you will practice using code to move the robotic arm through a sequence of points. The goal is to connect each movement command to a physical location and observe how ordered commands create repeatable motion.

Notes

  • Run the arm from a known safe starting position.
  • Read each movement command as a coordinate target.
  • Pay attention to how the final value changes the arm height or tool position.
  • Use testing evidence to explain what the robot does at each step.
  • Add meaningful comments before submitting code.
Code example

1.1.4: Coding Movement

Review the code, copy it when needed, and add comments before submitting your final version.

VEXcode Python Example
Code examples may be incomplete or missing comments. Comments are required for code submissions.
def main():
    signal_tower.set_color(SignalTower.WHITE, SignalTower.ON)
    signal_tower.set_color(SignalTower.GREEN, SignalTower.OFF)
    arm.set_speed(50)
    arm.move_to(150, -2, 10)
    arm.move_to(150, -2, 1)
    arm.move_to(150, -2, 30)
    arm.move_to(150, 104, 30)
    arm.move_to(150, 104, 1)
    arm.move_to(150, 104, 30)
    arm.move_to(99, 150, 30)
    arm.move_to(99, 150, 1)
    arm.move_to(99, 150, 30)
    arm.move_to(-1, 150, 30)
    arm.move_to(-1, 150, 1)
    arm.move_to(-1, 150, 30)
    arm.move_to(120, 0, 100)
    signal_tower.set_color(SignalTower.WHITE, SignalTower.OFF)