Skip to content

Commit

Permalink
Adjust default swerve steer PID gains
Browse files Browse the repository at this point in the history
  • Loading branch information
bhall-ctre committed Dec 3, 2024
1 parent f15da7a commit 0df8772
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TunerConstants {
// The steer motor uses any SwerveModule.SteerRequestType control request with the
// output type specified by SwerveModuleConstants::SteerMotorClosedLoopOutput
static constexpr configs::Slot0Configs steerGains = configs::Slot0Configs{}
.WithKP(100).WithKI(0).WithKD(2.0)
.WithKP(100).WithKI(0).WithKD(0.5)
.WithKS(0.2).WithKV(1.59).WithKA(0)
.WithStaticFeedforwardSign(signals::StaticFeedforwardSignValue::UseClosedLoopSign);
// When using closed-loop control, the drive motor uses the control
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TunerConstants {
// The steer motor uses any SwerveModule.SteerRequestType control request with the
// output type specified by SwerveModuleConstants::SteerMotorClosedLoopOutput
static constexpr configs::Slot0Configs steerGains = configs::Slot0Configs{}
.WithKP(100).WithKI(0).WithKD(2.0)
.WithKP(100).WithKI(0).WithKD(0.5)
.WithKS(0.2).WithKV(1.59).WithKA(0)
.WithStaticFeedforwardSign(signals::StaticFeedforwardSignValue::UseClosedLoopSign);
// When using closed-loop control, the drive motor uses the control
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TunerConstants {
// The steer motor uses any SwerveModule.SteerRequestType control request with the
// output type specified by SwerveModuleConstants.SteerMotorClosedLoopOutput
private static final Slot0Configs steerGains = new Slot0Configs()
.withKP(100).withKI(0).withKD(2.0)
.withKP(100).withKI(0).withKD(0.5)
.withKS(0.2).withKV(1.59).withKA(0)
.withStaticFeedforwardSign(StaticFeedforwardSignValue.UseClosedLoopSign);
// When using closed-loop control, the drive motor uses the control
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TunerConstants {
// The steer motor uses any SwerveModule.SteerRequestType control request with the
// output type specified by SwerveModuleConstants.SteerMotorClosedLoopOutput
private static final Slot0Configs steerGains = new Slot0Configs()
.withKP(100).withKI(0).withKD(2.0)
.withKP(100).withKI(0).withKD(0.5)
.withKS(0.2).withKV(1.59).withKA(0)
.withStaticFeedforwardSign(StaticFeedforwardSignValue.UseClosedLoopSign);
// When using closed-loop control, the drive motor uses the control
Expand Down
2 changes: 1 addition & 1 deletion python/SwerveWithPathPlanner/generated/tuner_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TunerConstants:
configs.Slot0Configs()
.with_k_p(100)
.with_k_i(0)
.with_k_d(2.0)
.with_k_d(0.5)
.with_k_s(0.2)
.with_k_v(1.59)
.with_k_a(0)
Expand Down

0 comments on commit 0df8772

Please sign in to comment.