Skip to content

Commit

Permalink
fix operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatankar6 committed Apr 11, 2024
1 parent 986c5e4 commit 37870cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/drivetrain/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public SwerveModuleState setSetpoint(SwerveModuleState state) {
setpointVelocityRPS *= Math.max(0.0, Math.cos(angleError));

double azimuthVelocityRPS = Units.radiansToRotations(m_inputs.steerVelocityRadPerSec);
double driveRateBackOut = azimuthVelocityRPS *= kCouplingRatio;
double driveRateBackOut = azimuthVelocityRPS * kCouplingRatio;
setpointVelocityRPS += driveRateBackOut;

m_io.setSteerRotations(optimizedState.angle.getRotations());
Expand Down

0 comments on commit 37870cd

Please sign in to comment.