ccu4flow: stop controlling when abs(dif) < tol/2
This commit is contained in:
@ -541,7 +541,7 @@ proc ccu4flow::ctrl {} {
|
|||||||
# force init of reg_hyst state
|
# force init of reg_hyst state
|
||||||
sct regstate reg
|
sct regstate reg
|
||||||
setstate reg_hyst
|
setstate reg_hyst
|
||||||
} elseif {$dif * [sct dir] <= 0} {
|
} elseif {$dif * [sct dir] <= 0 || abs($dif) < $tol * 0.5} {
|
||||||
setstate within_tolerance
|
setstate within_tolerance
|
||||||
} elseif {$now < $lastim + $period} {
|
} elseif {$now < $lastim + $period} {
|
||||||
# wait
|
# wait
|
||||||
|
Reference in New Issue
Block a user