honda only

This commit is contained in:
Jason Wen
2024-07-31 17:04:00 -04:00
parent 03722f9090
commit 053b07e4c0
+1 -1
View File
@@ -741,7 +741,7 @@ class Controls:
CC.cruiseControl.override = self.enabled_long and not CC.longActive and self.CP.openpilotLongitudinalControl
CC.cruiseControl.cancel = CS.cruiseState.enabled and \
(not self.enabled_long or (CS.brakePressed and (not self.CS_prev.brakePressed or not CS.standstill)) or
(self.CP.openpilotLongitudinalControl and self.CP.pcmCruise and self.CP.minEnableSpeed > 0 and self.CP.pcmCruiseSpeed and not self.CS_prev.accEnabled))
(any(b.type == ButtonType.cancel for b in CS.buttonEvents) and self.CP.carName == "honda"))
if self.joystick_mode and self.sm.recv_frame['testJoystick'] > 0 and self.sm['testJoystick'].buttons[0]:
CC.cruiseControl.cancel = True