fs (and other furnaces): fixes on interlock
- try to make interlock right - merge status where ever possbile
This commit is contained in:
@@ -82,8 +82,11 @@ class WrapControlledBy:
|
||||
|
||||
on a FloatRange() the default value is 0
|
||||
"""
|
||||
self.self_controlled()
|
||||
self.internal_set_target(self.parameters['target'].datatype.default)
|
||||
zero = self.parameters['target'].datatype.default
|
||||
try:
|
||||
self.internal_set_target(zero)
|
||||
except Exception as e:
|
||||
self.target = zero
|
||||
|
||||
def update_target(self, module, value):
|
||||
"""update internal target value
|
||||
@@ -94,7 +97,6 @@ class WrapControlledBy:
|
||||
override and super call, if other actions are needed
|
||||
"""
|
||||
if self.controlled_by != module:
|
||||
self.log.warning('UT %r %r', self.controlled_by, module)
|
||||
deactivate_control = self.inputCallbacks.get(self.controlled_by)
|
||||
if deactivate_control:
|
||||
deactivate_control(module)
|
||||
|
||||
Reference in New Issue
Block a user