improve handling of dry_timestamp
This commit is contained in:
+1
-1
@@ -252,7 +252,7 @@ except:
|
||||
print >> sys.stderr, traceback.format_exc()
|
||||
|
||||
try:
|
||||
hexiposi.set_offset(16.5)
|
||||
hexiposi.set_offset(16.3)
|
||||
hexiposi.polling=500 ␍
|
||||
except:
|
||||
print >> sys.stderr, traceback.format_exc()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
DEFAULT_DRY_HEAT_TIME = 40.0
|
||||
DEFAULT_DRY_SPEED = 0.3
|
||||
DEFAULT_DRY_SPEED = 0.35
|
||||
DEFAULT_DRY_WAIT_COLD = 40.0
|
||||
|
||||
def dry(heat_time=None, speed=None, wait_cold = None):
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
def move_cold():
|
||||
def move_cold(reset_timestamp=False):
|
||||
"""
|
||||
"""
|
||||
print "move_cold"
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user