Update main.py
This commit is contained in:
parent
b8406b4d94
commit
d7ba4efa8e
9
main.py
9
main.py
@ -88,9 +88,12 @@ def ws_handler():
|
|||||||
sumorobot.move(STOP)
|
sumorobot.move(STOP)
|
||||||
# for terminating delays in code
|
# for terminating delays in code
|
||||||
sumorobot.terminate = True
|
sumorobot.terminate = True
|
||||||
elif b'calibrate_line' in data:
|
elif b'calibrate_line_value' in data:
|
||||||
sumorobot.calibrate_line()
|
sumorobot.calibrate_line_value()
|
||||||
#print('calibrate')
|
#print('calibrate_line')
|
||||||
|
elif b'calibrate_line_threshold' in data:
|
||||||
|
sumorobot.calibrate_line_threshold()
|
||||||
|
#print('calibrate_threshold')
|
||||||
elif b'Gone' in data:
|
elif b'Gone' in data:
|
||||||
print("server said 410 Gone, attempting to reconnect...")
|
print("server said 410 Gone, attempting to reconnect...")
|
||||||
#conn = uwebsockets.connect(url)
|
#conn = uwebsockets.connect(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user