Section 5.2 - Implementing PID With a Shooter Subsystem


Setting Up and Using PID

This lesson will guide you through setting up PID for velocity control on a shooter subsystem. You will begin with an existing codebase, creating a configuration object to manage the Proportional, Integral, and Derivative values. You’ll then implement a method to control the motor’s velocity in rotations per second, incorporating necessary conversions to revolutions per minute. Additionally, you will create a command to run the shooter at a target RPM of 1000 and troubleshoot any issues related to printouts in simulation environments where motor sensors may not operate.