[MLZ:entangle] fix windowtimeout
condition was not 100% right. Change-Id: I189f0bb7f548d434dab9379727abd85ba0de58fa Reviewed-on: https://forge.frm2.tum.de/review/18540 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
parent
916b1ba85f
commit
acb8e6d0a1
@ -505,8 +505,8 @@ class AnalogOutput(PyTangoDevice, Drivable):
|
||||
|
||||
max_in_hist = max(hist_in_window)
|
||||
min_in_hist = min(hist_in_window)
|
||||
stable = max_in_hist - min_in_hist <= 2*self.precision
|
||||
at_target = min_in_hist <= self.target <= max_in_hist
|
||||
stable = max_in_hist - min_in_hist <= self.precision
|
||||
at_target = max_in_hist - self.precision <= self.target <= min_in_hist + self.precision
|
||||
|
||||
return stable and at_target
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user