Section 3.1 - Working With Motors in Code
Making Motors Spin!
This lesson will introduce you to the fundamentals of writing code for motors in your robot. You will begin by downloading the Phoenix Vendor Library and creating a motor object in Robot.java, ensuring you understand how to obtain the motor's ID using TunerX. You will apply the motor's default configuration in robotInit(), emphasizing the necessity of current limiting, and then set the motor's percent output in teleopPeriodic(). Additionally, you will use the simulator to demonstrate the motor's functionality, familiarizing yourself with key aspects of the simulation environment.