68 PID(
float Kc,
float tauI,
float tauD,
float interval);
Proportional-integral-derivative controller.
Definition: PID.h:57
float _prevControllerOutput
Definition: PID.h:157
float _controllerOutput
Definition: PID.h:156
float _prevError
Definition: PID.h:154
void setProcessValue(float pv)
Set the process value.
float _inSpan
Definition: PID.h:163
float _outSpan
Definition: PID.h:166
float _iParam
Definition: PID.h:146
float _bias
Definition: PID.h:171
float _outMax
Definition: PID.h:165
float _processVariable
Definition: PID.h:152
float _dParam
Definition: PID.h:147
PID(float Kc, float tauI, float tauD, float interval)
Contructor.
void setInputLimits(float inMin, float inMax)
Scale from inputs to 0-100%.
void setOutputLimits(float outMin, float outMax)
Scale from outputs to 0-100%.
float getSetPoint()
Get the setpoint.
float _a
Definition: PID.h:174
float _Kc
Definition: PID.h:140
void setBias(float bias)
Set the bias.
float _prevProcessVariable
Definition: PID.h:153
float _inMax
Definition: PID.h:162
float compute(void)
PID calculation.
float _inMin
Definition: PID.h:161
float _setPoint
Definition: PID.h:150
float _outMin
Definition: PID.h:164
float _tSample
Definition: PID.h:177
bool _usingFeedForward
Definition: PID.h:137
float _tauR
Definition: PID.h:141
float _tauD
Definition: PID.h:142
float _pParam
Definition: PID.h:145
void setSetPoint(float sp)
Set the set point.
void reset()
Reset previous values of output and error.
void setTunings(float Kc, float tauI, float tauD)
Calculate PID constants.
float _accError
Definition: PID.h:169