[wpimath] ProfiledPIDController: Add getConstraints (#5399)

This commit is contained in:
Ryan Blue
2023-06-19 20:11:20 -04:00
committed by GitHub
parent 25ad5017a9
commit d6bd72d738
2 changed files with 15 additions and 0 deletions

View File

@@ -199,6 +199,15 @@ public class ProfiledPIDController implements Sendable {
m_constraints = constraints;
}
/**
* Get the velocity and acceleration constraints for this controller.
*
* @return Velocity and acceleration constraints.
*/
public TrapezoidProfile.Constraints getConstraints() {
return m_constraints;
}
/**
* Returns the current setpoint of the ProfiledPIDController.
*