From c5113e8ea6eea5025ebee32f9d5566434b9bc11d Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Tue, 29 Jul 2025 01:33:01 -0500 Subject: [PATCH] Update car_specific.py --- selfdrive/car/car_specific.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/car_specific.py b/selfdrive/car/car_specific.py index 9513f0ba9..b741e916c 100644 --- a/selfdrive/car/car_specific.py +++ b/selfdrive/car/car_specific.py @@ -82,7 +82,7 @@ class CarSpecificEvents: events = self.create_common_events(CS, CS_prev) if self.CP.openpilotLongitudinalControl: - if CS.cruiseState.standstill and not CS.brakePressed: + if CS.cruiseState.standstill and not (CS.brakePressed or self.CP.autoResumeSng): events.add(EventName.resumeRequired) if CS.vEgo < self.CP.minEnableSpeed: events.add(EventName.belowEngageSpeed) @@ -113,7 +113,8 @@ class CarSpecificEvents: if self.CP.openpilotLongitudinalControl: if CS.vEgo < self.CP.minEnableSpeed + 0.5: events.add(EventName.belowEngageSpeed) - if CC.enabled and CS.vEgo < self.CP.minEnableSpeed: + if ((CC.enabled and CS.vEgo < self.CP.minEnableSpeed) or + ((self.CP.flags & GMFlags.CC_LONG) and CS.vEgo < self.CP.minEnableSpeed and CS.cruiseState.enabled)): events.add(EventName.speedTooLow) # TODO: this needs to be implemented generically in carState struct