Overloaded Compute function to allow setpoint to be specified by the user
This commit is contained in:
5
PID_v1.h
5
PID_v1.h
@ -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
|
||||
|
Reference in New Issue
Block a user