Skip to main content Link Menu Expand (external link) Document Search Copy Copied

double getError()

Returns the error of the PIDF. This is the difference between the target and the current value.

Example

PIDF pidf = PIDF(1, 1, 1);
pidf.setTarget(10);
pidf.incVals(5);
cout << pidf.getError() << endl; //Prints 5