fs (and other furnaces): fixes on interlock

- try to make interlock right
- merge status where ever possbile
This commit is contained in:
2025-07-07 16:05:27 +02:00
parent 1e73440149
commit cf151dd324
5 changed files with 143 additions and 57 deletions

View File

@@ -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)