17 lines
526 B
Python
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)
|