calculate
Returns the next output of the PID controller.
Return
The next output of the PID controller.
Parameters
measurement
The current measurement of the process variable.
Returns the next output of the PID controller.
Return
The next output of the PID controller.
Parameters
measurement
The current measurement of the process variable.
new Goal
The new goal of the controller.
Returns the next output of the PIDController.
Return
The next output of the PID controller.
Parameters
measurement
The current measurement of the process variable.
new Goal
The new goal of the controller.
open fun calculate(measurement: Double, @NonNull newGoal: TrapezoidProfile.State, @NonNull newConstraints: TrapezoidProfile.Constraints): Double
Returns the next output of the PID controller.
Return
The next output of the PID controller.
Parameters
measurement
The current measurement of the process variable.
new Goal
The new goal of the controller.
new Constraints
Velocity and acceleration constraints for goal.