add line value and threshold
This commit is contained in:
parent
d7ba4efa8e
commit
25dd06f4cc
3
main.py
3
main.py
@ -92,7 +92,8 @@ def ws_handler():
|
|||||||
sumorobot.calibrate_line_value()
|
sumorobot.calibrate_line_value()
|
||||||
#print('calibrate_line')
|
#print('calibrate_line')
|
||||||
elif b'calibrate_line_threshold' in data:
|
elif b'calibrate_line_threshold' in data:
|
||||||
sumorobot.calibrate_line_threshold()
|
data = ujson.loads(data)
|
||||||
|
sumorobot.calibrate_line_threshold(int(data['val']))
|
||||||
#print('calibrate_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...")
|
||||||
|
Loading…
Reference in New Issue
Block a user