Welcome to this tutorial on using Java Command Based with WPILIB. In this project, you will attempt to drive a motor to a desired position using Feedforward and PID.
Go to src/main/java/frc/robot. You should see the following contents:
Main.java- This is the entry point for the code. You should not need to modify this.Robot.java- The RoboRio is inherently time-based, running the periodic functions every 20 ms or so. Using theCommandScheduler, we abstract the periodic nature away and work solely with Commands. You should not need to modify this.RobotContainer.java- This class captures your entire robot.subsystemfolder - Opensubsystem/Motor.javaand fill in the required fields.
You will need to refer to WPILIB Commands and MotionMagic documentation.