Represent cruise control system with PID controller as an ode. Issue with Derivative term
I have been tasked with representing a simple cruise control system with a PID controller as an ordinary differential equation and estimating KP, KI, and KD parameters (I use torchdiffeq library for differentiation and simulation). I know, I can add error to the state to calculate the integral, however, I struggle with the implementation of … Read more