We need to create commands to allow us to make the robot follow a path. The two basic commands we will need are to move forward or backward a distance and to turn to an angle. Both of these can be PID feedback commands. The encoders will be used for the move command and the gyro for the turn command. An description of how to do this, along with an example is here:
We need to create commands to allow us to make the robot follow a path. The two basic commands we will need are to move forward or backward a distance and to turn to an angle. Both of these can be PID feedback commands. The encoders will be used for the move command and the gyro for the turn command. An description of how to do this, along with an example is here:
https://docs.wpilib.org/en/stable/docs/software/commandbased/pid-subsystems-commands.html