Update train speed values to match new ESC

This commit is contained in:
Tanner 2024-12-28 03:01:57 +00:00
parent 38904c50db
commit 9e387e5bb1

12
main.py
View File

@ -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'