Profiled PIDController
Implements a PID control loop whose setpoint is constrained by a trapezoid profile. Source
Since
3.5.0
Constructors
Functions
Link copied to clipboard
Returns true if the error is within the tolerance of the error.
Link copied to clipboard
open fun calculate(measurement: Double, newGoal: TrapezoidProfile.State, newConstraints: TrapezoidProfile.Constraints): Double
Returns the next output of the PID controller.
Returns the next output of the PIDController.
Link copied to clipboard
Gets the current coefficients for this controller.
Link copied to clipboard
Link copied to clipboard
Returns the difference between the setpoint and the measurement.
Link copied to clipboard
Returns the change in error per second.
Link copied to clipboard
Link copied to clipboard
Sets the coefficients for this controller.
Link copied to clipboard
Set velocity and acceleration constraints for goal.
Link copied to clipboard
Sets the error which is considered tolerable for use with atSetpoint().