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