Files
x06da/script/motion/move_cold.py
alexgobbo 93844b103e V2
2024-10-30 11:23:40 +01:00

28 lines
641 B
Python

def move_cold(reset_timestamp=False):
"""
"""
if reset_timestamp:
set_setting("dry_timestamp",time.time())
print "move_cold and resetting dry_timestamp"
else:
print "move cold"
if robot.simulated:
time.sleep(3.0)
return
#Initial checks
robot.assert_no_task()
robot.reset_motion()
robot.wait_ready()
robot.assert_cleared()
#robot.assert_in_known_point()
#Enabling
enable_motion()
if not robot.is_cold():
off_x,off_y = get_cover_location_mm()
robot.move_dewar(off_x,off_y)
robot.move_cold()