This commit is contained in:
+3
-1
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user