Controller
- class Controller.PIDController(Kp, Ki, Kd, setpoint)[source]
A PID (Proportional-Integral-Derivative) controller for computing control output based on the difference between a setpoint and a process value.
- __init__(Kp, Ki, Kd, setpoint)[source]
Initialize the PID controller with the given parameters. It is assumed that the setpoint is a function of the PID controller and that the parameters are in the form of numpy arrays.
- Parameters:
Kp (float or numpy.ndarray) – The proportional gain parameter.
Ki (float or numpy.ndarray) – The integral gain parameter.
Kd (float or numpy.ndarray) – The derivative gain parameter.
setpoint (float) – The target value for the PID controller.