Skip to content

Commit

Permalink
removed space
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentShao32 committed Jan 30, 2024
1 parent 8abf951 commit c49ad90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private void setSpeed(SwerveModuleState desiredState, boolean isOpenLoop){
}
/**
* Sets the rotation of the angle motor
* @param desiredState Desired set state for PID Controller
* @param desiredState Desired set state for PID Controller
*/
private void setAngle(SwerveModuleState desiredState){
Rotation2d angle = (Math.abs(desiredState.speedMetersPerSecond) <= (Constants.SwerveConstants.maxSpeed * 0.01)) ? lastAngle : desiredState.angle; //Prevent rotating module if speed is less then 1%. Prevents Jittering.
Expand Down

0 comments on commit c49ad90

Please sign in to comment.