Files
mxsc/script/motion/mount.py
gac-S_Changer 05f982c86b
2018-05-22 16:07:56 +02:00

17 lines
526 B
Python

def mount(segment, puck, sample, unmount = False):
"""
"""
cmd = "firstmount" if unmount else "mount"
assertValidAddress(segment, puck, sample)
hexiposi.move(segment)
img_segment = get_img_cover_pos()
if img_segment != segment:
raise Excepton ("Image detection of cover does not match hexiposi: " + str(img_segment))
if type(segment) == str:
segment = ord(segment.upper()) - ord('A') +1
robot.start_task(cmd,segment, puck, sample)
#robot.mount(segment, puck, sample)