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

Commit

Permalink
feat(swerve): Tighten current limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Feb 29, 2024
1 parent 5aa04b5 commit b35c135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/swerve/DriveMotorIOTalonFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DriveMotorIOTalonFX(CAN driveMotorCAN) {

// TODO Copied from Citrus Circuits 2023 release
talonFXBaseConfig.CurrentLimits =
new MotorCurrentLimits(300.0, 40.0, 100.0, 1.0).asCurrentLimitsConfigs();
new MotorCurrentLimits(300.0, 30.0, 60.0, 1.0).asCurrentLimitsConfigs();

positionRotations = talonFX.getPosition();
velocityRotationsPerSecond = talonFX.getVelocity();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void configure() {
talonFXPIDFConfig.ClosedLoopGeneral.ContinuousWrap = true;

talonFXPIDFConfig.CurrentLimits =
new MotorCurrentLimits(0.0, 40.0, 3.0, 1.0).asCurrentLimitsConfigs();
new MotorCurrentLimits(0.0, 20.0, 30.0, 1.0).asCurrentLimitsConfigs();

talonFXPIDFConfig.Feedback.SensorToMechanismRatio = MK4iConstants.STEER_GEARING;

Expand Down

0 comments on commit b35c135

Please sign in to comment.