Skip to content

Commit

Permalink
Fix typo in PositionClosedLoop PeakReverseTorqueCurrent config
Browse files Browse the repository at this point in the history
  • Loading branch information
bhall-ctre committed Apr 2, 2024
1 parent 8d21b12 commit 6d7a942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/PositionClosedLoop/src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void robotInit() {
configs.Slot1.kD = 2; // A change of 1 rotation per second results in 2 amps output
// Peak output of 130 amps
configs.TorqueCurrent.PeakForwardTorqueCurrent = 130;
configs.TorqueCurrent.PeakReverseTorqueCurrent = 130;
configs.TorqueCurrent.PeakReverseTorqueCurrent = -130;

/* Retry config apply up to 5 times, report if failure */
StatusCode status = StatusCode.StatusCodeNotInitialized;
Expand Down

0 comments on commit 6d7a942

Please sign in to comment.