Fix ProfiledPIDSubsystem parameter name (#2017)

Change from goal to setpoint (these are two different things).
This commit is contained in:
Oblarg
2019-11-09 12:16:50 -05:00
committed by Peter Johnson
parent 94843adb8f
commit 5f33d6af12
2 changed files with 6 additions and 4 deletions

View File

@@ -44,10 +44,10 @@ public abstract class ProfiledPIDSubsystem extends SubsystemBase {
/**
* Uses the output from the ProfiledPIDController.
*
* @param output the output of the ProfiledPIDController
* @param goal the goal state of the ProfiledPIDController, for feedforward
* @param output the output of the ProfiledPIDController
* @param setpoint the setpoint state of the ProfiledPIDController, for feedforward
*/
public abstract void useOutput(double output, State goal);
public abstract void useOutput(double output, State setpoint);
/**
* Returns the goal used by the ProfiledPIDController.