Update train speed values to match new ESC
This commit is contained in:
parent
38904c50db
commit
9e387e5bb1
12
main.py
12
main.py
|
@ -1481,14 +1481,14 @@ I will be terse in my responses.
|
|||
res = ''
|
||||
|
||||
if button == 'r':
|
||||
res = mqtt_publish('train/control/speed', -140)
|
||||
logging.info('Setting train speed to: -140')
|
||||
res = mqtt_publish('train/control/speed', 50)
|
||||
logging.info('Setting train speed to: 50')
|
||||
elif button == 't' or c == KEY_SPACE:
|
||||
res = mqtt_publish('train/control/speed', 0)
|
||||
logging.info('Setting train speed to: 0')
|
||||
res = mqtt_publish('train/control/speed', 90)
|
||||
logging.info('Setting train speed to: 90')
|
||||
elif button == 'f':
|
||||
res = mqtt_publish('train/control/speed', 160)
|
||||
logging.info('Setting train speed to: 160')
|
||||
res = mqtt_publish('train/control/speed', 140)
|
||||
logging.info('Setting train speed to: 140')
|
||||
|
||||
elif button == 'b' or c == KEY_ESCAPE:
|
||||
current_screen = 'home'
|
||||
|
|
Loading…
Reference in New Issue
Block a user