Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
refactor(swerve): Move heading proportional gain to a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Feb 15, 2024
1 parent 8a2020c commit eb7b68a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/swerve/DriveCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public DriveCommand(CommandXboxController driverController) {

addRequirements(swerve);

headingFeedback = new PIDController(6.0, 0.0, 0.1);
final double headingKp = 6.0;

headingFeedback = new PIDController(headingKp, 0.0, 0.1);
headingFeedback.enableContinuousInput(-0.5, 0.5);

headingGoal = new State(0.0, 0.0);
Expand Down

0 comments on commit eb7b68a

Please sign in to comment.