DAQ/TELL - added check for motion_sync events
This commit is contained in:
@@ -258,7 +258,7 @@ class TellClient:
|
||||
wait_timeout = timeout + self.estimate_mounting_time(segment)
|
||||
logger.info("waiting for mount to complete")
|
||||
if wait and segment in "ABCDEF":
|
||||
event, value = self.pshell.wait_events({"state": None, "motion_task": "dry", "gripper_detection" : "No Pin in Gripper"}, timeout=wait_timeout)
|
||||
event, value = self.pshell.wait_events({"state": None, "motion_task": "dry", "gripper_detection" : "No Pin in Gripper", "motion_sync": "Robot Clear after mount"}, timeout=wait_timeout)
|
||||
if event is None or event == "state":
|
||||
logger.info(f"event: {event} occurred with value: {value}, checking command completed okay")
|
||||
self.check_command_ok(
|
||||
@@ -272,6 +272,10 @@ class TellClient:
|
||||
logger.info(f"event: {event} occurred with value: {value}")
|
||||
logger.info(" Drying occurring, releasing interface to user")
|
||||
return value
|
||||
elif event == "motion_sync" and value == "Robot Clear after mount":
|
||||
logger.info(f"event: {event} occurred with value: {value}")
|
||||
logger.info(" Mounting complete, releasing interface to user")
|
||||
return value
|
||||
else:
|
||||
logger.info(f"Unexpected event: {event} occurred with value: {value}")
|
||||
logger.info("Checking command completed okay anyway")
|
||||
|
||||
Reference in New Issue
Block a user