quarry about the PID function.

06 Apr 2013

in this pid controller we assign the value of ki ,kp ,kc and rate. my program dicide the process value , set value is decided by me and ki and kp gain are also decided by me .correct, now my question is that i what is purpose of rate is here,

as given example in cookbook the loop is repeat for time same as rate 's value.

in my program as shown below, main while loop is running for infinte time so if i run another loop in the in main while loop then system may loose it is real time command . so is it possible to remove rate value and drive the pi controller directly.

while(1) { - --

pid.conteoller }

if i want to use the result of the pid for further purpose of the programming so i don't want to set the output limit , is ti allowed to do that thing to me?

thank you