This commit is contained in:
@@ -23,7 +23,7 @@ class RobotSC(RobotTCP):
|
||||
def __init__(self, name, server, timeout = 1000, retries = 1):
|
||||
RobotTCP.__init__(self, name, server, timeout, retries)
|
||||
self.set_tasks(["getDewar", "putDewar", "putGonio", "getGonio", "robotRecover", "moveDewar", "movePark", "moveGonio","moveHeater", "moveScanner","moveHome"])
|
||||
self.set_known_points(["pPark", "pHome","pDewarHome", "pGonioHome", "pDewarWait", "pGonioGet", "pScanHome", "pHeaterHome", "pHeater", "pHeaterBottom", "pScanStop","pHelium"])
|
||||
self.set_known_points(["pPark", "pGonioHome", "pDewarWait", "pGonioGet", "pScanHome", "pHeaterHome", "pHeater", "pHeaterBottom", "pScanStop","pHelium", "pHome"])
|
||||
self.setPolling(DEFAULT_ROBOT_POLLING)
|
||||
|
||||
def move_dewar(self):
|
||||
@@ -97,7 +97,7 @@ class RobotSC(RobotTCP):
|
||||
def robot_recover(self):
|
||||
self.start_task('robotRecover')
|
||||
self.wait_task_finished(TASK_WAIT_ROBOT_POLLING)
|
||||
self.assert_dewar_home()
|
||||
self.assert_home()
|
||||
|
||||
def toSegmentNumber(self, segment):
|
||||
if is_string(segment):
|
||||
@@ -143,7 +143,7 @@ class RobotSC(RobotTCP):
|
||||
return self.is_in_point("pPark")
|
||||
|
||||
def is_home(self):
|
||||
return self.is_in_point("pDewarHome")
|
||||
return self.is_in_point("pHome")
|
||||
|
||||
def is_dewar(self):
|
||||
return self.is_in_point("pDewarWait")
|
||||
@@ -186,7 +186,7 @@ class RobotSC(RobotTCP):
|
||||
self.assert_in_point("pPark")
|
||||
|
||||
def assert_home(self):
|
||||
self.assert_in_point("pDewarHome")
|
||||
self.assert_in_point("pHome")
|
||||
|
||||
def assert_dewar(self):
|
||||
self.assert_in_point("pDewarWait")
|
||||
|
||||
+10
-7
@@ -138,13 +138,16 @@ def set_air_stream(state):
|
||||
set_heater_chrono = None
|
||||
|
||||
def monitor_heater_time():
|
||||
while get_heater():
|
||||
if set_heater_chrono.isTimeout(MAX_HEATER_TIME):
|
||||
set_heater(False)
|
||||
log("Heater timeout expired: turned off", False)
|
||||
return
|
||||
time.sleep(0.1)
|
||||
|
||||
time.sleep(0.5)
|
||||
try:
|
||||
while get_heater():
|
||||
if set_heater_chrono.isTimeout(MAX_HEATER_TIME):
|
||||
set_heater(False)
|
||||
log("Heater timeout expired: turned off", False)
|
||||
return
|
||||
time.sleep(0.1)
|
||||
except:
|
||||
print sys.exc_info()
|
||||
|
||||
def set_heater(state):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user