Overloaded Compute function to allow setpoint to be specified by the user

This commit is contained in:
alevar
2016-08-24 01:28:20 +03:00
parent fb095d8cfc
commit 44eeb07dda
2 changed files with 39 additions and 0 deletions

View File

@ -24,6 +24,11 @@ class PID
// called every time loop() cycles. ON/OFF and
// calculation frequency can be set using SetMode
// SetSampleTime respectively
bool Compute(double*) // * performs the PID calculation with a specified setPoint passed as a parameter
// it should be called every time loop() cycles. ON/OFF and
// calculation frequency can be set using SetMode
// SetSampleTime respectively
void SetOutputLimits(double, double); //clamps the output to a specific range. 0-255 by default, but
//it's likely the user will want to change this depending on