Stefan, I want to drink from the same fountain of patience
This commit is contained in:
parent
08394b6878
commit
e8e43f5bef
|
@ -286,8 +286,8 @@ float PidIndustrial::getOutput(float target, float input, float dTime) {
|
|||
}
|
||||
|
||||
float PidIndustrial::limitOutput(float v) const {
|
||||
if (v < parameters->minValue)
|
||||
v = parameters->minValue;
|
||||
if (v < getMinValue())
|
||||
v = getMinValue();
|
||||
if (v > parameters->maxValue)
|
||||
v = parameters->maxValue;
|
||||
return v;
|
||||
|
|
Loading…
Reference in New Issue