can revert this

pull/25393/head
Shane Smiskol 3 years ago
parent 327dff65ed
commit 47444510c0
  1. 10
      selfdrive/car/gm/interface.py

@ -161,13 +161,9 @@ class CarInterface(CarInterfaceBase):
if self.CS.cruise_buttons != self.CS.prev_cruise_buttons and self.CS.prev_cruise_buttons != CruiseButtons.INIT: if self.CS.cruise_buttons != self.CS.prev_cruise_buttons and self.CS.prev_cruise_buttons != CruiseButtons.INIT:
be = create_button_event(self.CS.cruise_buttons, self.CS.prev_cruise_buttons, BUTTONS_DICT, CruiseButtons.UNPRESS) be = create_button_event(self.CS.cruise_buttons, self.CS.prev_cruise_buttons, BUTTONS_DICT, CruiseButtons.UNPRESS)
if be.type == ButtonType.accelCruise: # Suppress resume button if we're resuming from stop so we don't adjust speed.
# Suppress resume button if we're resuming from stop so we don't adjust speed. if be.type == ButtonType.accelCruise and (ret.cruiseState.enabled and ret.standstill):
if ret.cruiseState.enabled and ret.standstill: be.type = ButtonType.unknown
be.type = ButtonType.unknown
# The ECM will fault if resume triggers an enable while speed is unset (unset is greater than 70 m/s)
elif c.hudControl.setSpeed < 70:
be.type = ButtonType.unknown
ret.buttonEvents = [be] ret.buttonEvents = [be]

Loading…
Cancel
Save