Skip to content

Commit

Permalink
Update Differential.java
Browse files Browse the repository at this point in the history
  • Loading branch information
QZL-efz committed Feb 28, 2025
1 parent 774e049 commit ec384f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivetrain/Differential.java
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private double calculateRotation(Rotation2dSupplier headingSupplier) {
* @param rotation Angular velocity in [-1, 1].
*/
public ChassisSpeeds getChassisSpeeds(double velocity, double rotation) {
return new ChassisSpeeds(velocity * (this.slowMode ? this.MAX_SPEED / 5 : this.MAX_SPEED), 0, rotation * (this.slowMode ? this.MAX_ANGULAR_VELOCITY / 3 : this.MAX_ANGULAR_VELOCITY));
return new ChassisSpeeds(velocity * (this.slowMode ? this.MAX_SPEED / 2 : this.MAX_SPEED), 0, rotation * (this.slowMode ? this.MAX_ANGULAR_VELOCITY / 1.5 : this.MAX_ANGULAR_VELOCITY));
}

@Override
Expand Down

0 comments on commit ec384f4

Please sign in to comment.