increase cruise mismatch threshold

This commit is contained in:
Adeeb Shihadeh
2021-12-12 13:35:12 -08:00
parent 40d2e4ec90
commit 7f618b16bf
+1 -1
View File
@@ -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