Tuning Auto PID
Prerequisites
- Measuring tape
- Field space
- Fruit snacks
- Robot with a swerve drivetrain
- Tape
Steps for Basic Drive PID Tuning
- Create an autonomous routine that moves 1 meter on the X axis
- Mark 1 meter distance on the X axis using tape
- Line up the robot with the tape marks, ensuring correct drive direction
- Disable Limelight vision system (tune it so it cannot see anything)
- Set initial PID constants:
Tuning Process
Drive Sideways Tuning
- Run the autonomous routine
- Increase P value until robot consistently reaches the tape mark
- Extend the test distance to 2 meters
- Verify performance at longer distance
- Further tune if needed
- If slight overshooting occurs, add D value
Rotation Tuning
- Modify autonomous path to include 180-degree in place rotation
- Set initial PID constants:
- Tune rotation P value until turn is consistent
- If slight overshooting occurs, add D value
Completion
- Once satisfied with performance, commit the changes to your GitHub branch