From b034b505480a49fa67251419b914722eef3bd300 Mon Sep 17 00:00:00 2001 From: mawei Date: Tue, 18 Jun 2024 14:48:04 +0800 Subject: [PATCH] pass#self.events.add(EventName.cruiseMismatch), pass#self.events.add(EventName.canError) --- selfdrive/controls/controlsd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 452412d9b..4006eddce 100644 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -364,7 +364,7 @@ class Controls: if CS.canTimeout: self.events.add(EventName.canBusMissing) elif not CS.canValid: - self.events.add(EventName.canError) + pass#self.events.add(EventName.canError) # generic catch-all. ideally, a more specific event should be added above instead has_disable_events = self.events.contains(ET.NO_ENTRY) and (self.events.contains(ET.SOFT_DISABLE) or self.events.contains(ET.IMMEDIATE_DISABLE)) @@ -407,7 +407,7 @@ class Controls: cruise_mismatch = CS.cruiseState.enabled and (not self.enabled or not self.CP.pcmCruise) self.cruise_mismatch_counter = self.cruise_mismatch_counter + 1 if cruise_mismatch else 0 if self.cruise_mismatch_counter > int(6. / DT_CTRL): - self.events.add(EventName.cruiseMismatch) + pass#self.events.add(EventName.cruiseMismatch) # Check for FCW stock_long_is_braking = self.enabled and not self.CP.openpilotLongitudinalControl and CS.aEgo < -1.25