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

Commit

Permalink
refactor(swerve): Change visibility of acceleration calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Jan 25, 2024
1 parent 296ea2e commit 4942fd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/swerve/SwerveConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ private static double calculateMaximumAttainableSpeed(
* Calculates an acceleration using a ramp duration.
*
* @param maximumSpeed the maximum speed in units per second.
* @param rampDurationSeconds the desired duration to ramp from no speed to full speed.
* @param desiredRampDurationSeconds the desired duration to ramp from no speed to full speed.
* @return the acceleration in units per second per second.
*/
public static double calculateAcceleration(double maximumSpeed, double rampDurationSeconds) {
return maximumSpeed / rampDurationSeconds;
private static double calculateAcceleration(double maximumSpeed, double desiredRampDurationSeconds) {
return maximumSpeed / desiredRampDurationSeconds;
}

/** Maximum acceleration in meters per second per second. */
Expand Down

0 comments on commit 4942fd5

Please sign in to comment.