Profiled PIDController
Implements a PID control loop whose setpoint is constrained by a trapezoid profile. Source
Since
3.5.0
Constructors
Properties
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, @NonNull newGoal: TrapezoidProfile.State, @NonNull 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
Returns the difference between the setpoint and the measurement.
Link copied to clipboard
Returns the change in error per second.
Link copied to clipboard
Get the PIDF controller associated with this controller, if applicable.
Link copied to clipboard
Reset the previous error, the integral term, and disable the controller.
Reset the previous error and the integral term.
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 differential coefficient of the PID controller gain.
Link copied to clipboard
Sets the goal for the ProfiledPIDController.
Link copied to clipboard
Sets the integral coefficient of the PID controller gain.
Link copied to clipboard
Sets the proportional coefficient of the PID controller gain.
Link copied to clipboard
Sets the error which is considered tolerable for use with atSetpoint().
Inherited functions
Link copied to clipboard
open fun compose(@NonNull other: SystemController, @NonNull combiner: DoubleBinaryOperator): CompositeController
Composes this controller with another controller, returning a new controller that is the composition of the two.
Link copied to clipboard
Sets the coefficients for this controller.