30 lines
688 B
Python
30 lines
688 B
Python
def move_cold(reset_timestamp=False):
|
|
"""
|
|
"""
|
|
#useless code below
|
|
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():
|
|
cover_info = get_cover_location_mm()
|
|
robot.move_dewar(*cover_info)
|
|
robot.move_cold()
|
|
return True |