Update tests/ioc_plugin.py
Run CI Tests / test (push) Successful in 1m39s

This commit is contained in:
2025-08-11 11:18:33 +02:00
parent 5e54bab471
commit 97fa29ee4e
+3 -1
View File
@@ -50,13 +50,15 @@ def _start_shared_ioc(prefix: str):
for mid in MOTOR_IDS:
for suf in _motor_suffixes():
to_host[f"SIM:{mid}.{suf}"] = float
to_host[f"SIM:{mid}.RTYP"] = str
mor.host(**to_host)
_shared["hosted"].update(to_host.keys())
# Backing state
state = {k: 0.0 for k in to_host.keys()}
for mid in MOTOR_IDS:
state[f"SIM:{mid}.DMOV"] = 1.0 # “done”
state[f"SIM:{mid}.DMOV"] = 1.0
state[f"SIM:{mid}.RTYP"] = "motor"
def loop():
while not _shared["stop"].is_set():