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.
Build simple motion sequences using VEXcode Python.
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.
Review the code, copy it when needed, and add comments before submitting your final version.
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)