Shooter Subsystem

The shooter subsystem is much simpler than the drive system of a swerve drive motor. Basically you have one motor which spins and shoots the ball. You will need to control the speed of this motor via a PID loop.

You can find the pin numbers you need for the shooter motor’s PWMMotor and Encoder in the Swerve class:

In tuned my shooter at 90% full speed and here is my result:

And my final PID values were:

You should create a SpinupCommand which you can use to start the spinner in preparation for shooting.

Next: Feeder Subsystem