Closed jetsoftdev closed 7 years ago
I think it should be dError = error-lastError;
The way you have it written it is really an error chasing it tail with input-lastError. I could be wrong in the simplification of the math.
http://brettbeauregard.com/blog/2011/04/improving-the-beginner%E2%80%99s-pid-derivative-kick/
I think it should be dError = error-lastError;
The way you have it written it is really an error chasing it tail with input-lastError. I could be wrong in the simplification of the math.