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

double getVal()

Returns the current speed value of the PIDF

Example

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