Update main.py

This commit is contained in:
Silver Kuusik 2018-12-27 08:56:16 +01:00 committed by GitHub
parent b8406b4d94
commit d7ba4efa8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,9 +88,12 @@ def ws_handler():
sumorobot.move(STOP)
# for terminating delays in code
sumorobot.terminate = True
elif b'calibrate_line' in data:
sumorobot.calibrate_line()
#print('calibrate')
elif b'calibrate_line_value' in data:
sumorobot.calibrate_line_value()
#print('calibrate_line')
elif b'calibrate_line_threshold' in data:
sumorobot.calibrate_line_threshold()
#print('calibrate_threshold')
elif b'Gone' in data:
print("server said 410 Gone, attempting to reconnect...")
#conn = uwebsockets.connect(url)