|
Re: PID control loops - closed loop feedback
derivative is easy. its the delta or change since the last loop
create a new variable to keep track of the 'last_error' signal - then compair the current error signal to the last one - thats the derivate - you are interested in how fast the error signal is changing
which can be due to the driver making a sudden change, or the bot moving suddenly.
Last edited by KenWittlief : 26-04-2004 at 09:08.
|