ccu4flow: stop controlling when abs(dif) < tol/2

This commit is contained in:
2022-08-25 14:57:31 +02:00
parent 6a3d92a631
commit 18a8b1d8ca

View File

@ -541,7 +541,7 @@ proc ccu4flow::ctrl {} {
# force init of reg_hyst state
sct regstate reg
setstate reg_hyst
} elseif {$dif * [sct dir] <= 0} {
} elseif {$dif * [sct dir] <= 0 || abs($dif) < $tol * 0.5} {
setstate within_tolerance
} elseif {$now < $lastim + $period} {
# wait