Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
viggy96 committed Dec 20, 2023
1 parent a060808 commit 1fe4cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/lasarobotics/drive/ThrottleMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public class ThrottleMap {
* @param maxLinearSpeed maximum linear speed of robot (m/s)
*/
public ThrottleMap(PolynomialSplineFunction throttleInputCurve,
double deadband, double accelerationRate, double maxLinearSpeed) {
double deadband, double accelerationTime, double maxLinearSpeed) {
this.m_deadband = MathUtil.clamp(deadband, MIN_DEADBAND, MAX_DEADBAND);
this.m_throttleSlewLimiter = new SlewRateLimiter(
maxLinearSpeed / MathUtil.clamp(accelerationRate, MIN_ACCELERATION_TIME, MAX_ACCELERATION_TIME)
maxLinearSpeed / MathUtil.clamp(accelerationTime, MIN_ACCELERATION_TIME, MAX_ACCELERATION_TIME)
);

// Fill throttle input hashmap
Expand Down

0 comments on commit 1fe4cad

Please sign in to comment.