From 7f618b16bfa47352143d6edac30fba05f9fdfc28 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 12 Dec 2021 13:35:12 -0800 Subject: [PATCH] increase cruise mismatch threshold --- selfdrive/controls/controlsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index f49fbef5e9..19fe328dbf 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -301,7 +301,7 @@ class Controls: # Check for mismatch between openpilot and car's PCM 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(1. / DT_CTRL): + if self.cruise_mismatch_counter > int(3. / DT_CTRL): self.events.add(EventName.cruiseMismatch) # Check for FCW