5 years, 10 months ago.

PID - LPC1768

Hi everyone,

From the PID.h file from Aaron Berk, I could not understand the mathematical statement below;

controllerOutput_ = scaledBias + Kc_ * (error + (tauR_ * accError_) - (tauD_ * dMeas));

Why we subtract the last term? Do not we need to sum all terms(P+I+D)?

Regards.

Be the first to answer this question.