Arduino-PID-Library icon indicating copy to clipboard operation
Arduino-PID-Library copied to clipboard

Allow to inspect P/I/D terms before output

Open egueli opened this issue 6 years ago • 1 comments

This PR adds three methods to inspect what are the individual contributions to the output. This allows to know more about how the controller is operating.

Also fixes some whitespace issues.

egueli avatar Feb 26 '18 17:02 egueli

Inserting the following code snippet seems to work for me so far on the latest revision:

      lastPTerm = kp * ( pOnE ? error : dInput);
      lastITerm = outputSum;
      lastDTerm = -kd * dInput;

oakwhiz avatar Nov 08 '19 04:11 oakwhiz