cancel is never true if cruise isn't enabled and pedal

pull/20922/head
Shane Smiskol 4 years ago
parent 533bc30c2e
commit af2cc9d693
  1. 2
      selfdrive/controls/controlsd.py

@ -450,7 +450,7 @@ class Controls:
CC.actuators = actuators
CC.cruiseControl.override = True
CC.cruiseControl.cancel = not self.CP.enableCruise or (not self.enabled and CS.cruiseState.enabled)
CC.cruiseControl.cancel = (not self.CP.enableCruise and not self.CP.enableGasInterceptor) or (not self.enabled and CS.cruiseState.enabled)
# Some override values for Honda
# brake discount removes a sharp nonlinearity

Loading…
Cancel
Save