Skip to content

Commit

Permalink
PIDF scaled.
Browse files Browse the repository at this point in the history
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
  • Loading branch information
thenetworkgrinch committed Jan 18, 2024
1 parent c88b568 commit 142ba89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/swervelib/motors/TalonFXSwerve.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ public void configureCANStatusFrames(
@Override
public void configurePIDF(PIDFConfig config)
{
if(!isDriveMotor)
{
config.p *= 360;
config.i *= 360;
config.d *= 360;
}

TalonFXConfigurator cfg = motor.getConfigurator();
cfg.refresh(configuration.Slot0);
cfg.apply(
Expand Down

0 comments on commit 142ba89

Please sign in to comment.