improve handling of dry_timestamp

This commit is contained in:
gac-S_Changer
2020-10-06 10:04:51 +02:00
parent ef934bc30a
commit 539a51dc66
13 changed files with 47 additions and 12 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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):
+7 -3
View File
@@ -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