controlsd: fix long press set speed increment (#24161)

old-commit-hash: 1ea66ee244
taco
Adeeb Shihadeh 3 years ago committed by GitHub
parent db51455f0b
commit 3683360f86
  1. 3
      selfdrive/controls/lib/drive_helpers.py

@ -49,7 +49,8 @@ def update_v_cruise(v_cruise_kph, buttonEvents, button_timers, enabled, metric):
long_press = False long_press = False
button_type = None button_type = None
v_cruise_delta = 1. if metric else CV.MPH_TO_KPH # should be CV.MPH_TO_KPH, but this causes rounding errors
v_cruise_delta = 1. if metric else 1.6
for b in buttonEvents: for b in buttonEvents:
if b.type.raw in button_timers and not b.pressed: if b.type.raw in button_timers and not b.pressed:

Loading…
Cancel
Save