Skip to content

Commit

Permalink
Update flywheel PID constants in ShooterSubsystem2 and added resource
Browse files Browse the repository at this point in the history
  • Loading branch information
JediScoy committed Mar 27, 2024
1 parent f57b733 commit dff06cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/subsystems/ShooterSubsystem2.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ public ShooterSubsystem2() {
var flywheelConfigs0 = new Slot0Configs();
flywheelConfigs0
// https://github.com/CrossTheRoadElec/Phoenix6-Examples/blob/main/java/VelocityClosedLoop/src/main/java/frc/robot/Robot.java
.withKP(0.10)
.withKI(0.00)
// https://docs.wpilib.org/en/latest/docs/software/advanced-controls/introduction/tuning-flywheel.html
.withKP(0.10) // P and V are the most important for a flywheel
.withKI(0.00) // Should not be needed for a flywheel
.withKS(0.00) // Should low for a light flywheel? Maybe the pulley strength would impact it though?
.withKV(0.00);

Expand Down

0 comments on commit dff06cc

Please sign in to comment.