controlsd cruise speed: fix missing initial value

pull/26486/head
Shane Smiskol 2 years ago
parent ae40774425
commit f15d169289
  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_cluster_kph = V_CRUISE_INITIAL
self.v_cruise_kph_last = 0 self.v_cruise_kph_last = 0
self.button_timers = {ButtonType.decelCruise: 0, ButtonType.accelCruise: 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 @property
def v_cruise_initialized(self): def v_cruise_initialized(self):

Loading…
Cancel
Save