diff --git a/wpilibc/src/main/native/include/frc/controller/ArmFeedforward.h b/wpilibc/src/main/native/include/frc/controller/ArmFeedforward.h index 3dc962b790..6f6e08604b 100644 --- a/wpilibc/src/main/native/include/frc/controller/ArmFeedforward.h +++ b/wpilibc/src/main/native/include/frc/controller/ArmFeedforward.h @@ -74,7 +74,7 @@ class ArmFeedforward { * @return The maximum possible velocity at the given acceleration and angle. */ units::unit_t MaxAchievableVelocity( - units::volt_t maxVoltage, Angle angle, + units::volt_t maxVoltage, units::unit_t angle, units::unit_t acceleration) { // Assume max velocity is positive return (maxVoltage - kS - kCos * units::math::cos(angle) - @@ -95,7 +95,7 @@ class ArmFeedforward { * @return The minimum possible velocity at the given acceleration and angle. */ units::unit_t MinAchievableVelocity( - units::volt_t maxVoltage, Angle angle, + units::volt_t maxVoltage, units::unit_t angle, units::unit_t acceleration) { // Assume min velocity is negative, ks flips sign return (-maxVoltage + kS - kCos * units::math::cos(angle) - @@ -116,7 +116,8 @@ class ArmFeedforward { * @return The maximum possible acceleration at the given velocity and angle. */ units::unit_t MaxAchievableAcceleration( - units::volt_t maxVoltage, Angle angle, units::unit_t velocity) { + units::volt_t maxVoltage, units::unit_t angle, + units::unit_t velocity) { return (maxVoltage - kS * wpi::sgn(velocity) - kCos * units::math::cos(angle) - kV * velocity) / kA; @@ -135,7 +136,8 @@ class ArmFeedforward { * @return The minimum possible acceleration at the given velocity and angle. */ units::unit_t MinAchievableAcceleration( - units::volt_t maxVoltage, Angle angle, units::unit_t velocity) { + units::volt_t maxVoltage, units::unit_t angle, + units::unit_t velocity) { return MaxAchievableAcceleration(-maxVoltage, angle, velocity); }