Professional Documents
Culture Documents
Back To The Top of The Page
Back To The Top of The Page
Before the first call to this function, it should be initialised. For this reason, I created a pid_init() function, that calculates the value of the necessary constants. If
you observe the PID controller closely, you can see various improvements. For example: the I-term calculates the value of Kc * Ts / Ti every time again. This is
not necessary, because you can calculate this once in the pid_init() function and then use it in the PID controller function (saves computing time).