controlsd cruise speed: fix missing initial value

old-commit-hash: f15d169289
taco
Shane Smiskol 2 years ago
parent 2cd0421823
commit 270fe5aac3
  1. 2
      selfdrive/controls/lib/drive_helpers.py

@ -42,7 +42,7 @@ class VCruiseHelper:
self.v_cruise_cluster_kph = V_CRUISE_INITIAL
self.v_cruise_kph_last = 0
self.button_timers = {ButtonType.decelCruise: 0, ButtonType.accelCruise: 0}
self.button_change_states = {btn: {"standstill": False} for btn in self.button_timers}
self.button_change_states = {btn: {"standstill": False, "enabled": False} for btn in self.button_timers}
@property
def v_cruise_initialized(self):

Loading…
Cancel
Save