From 3e6204567edc23533ffa8cee9d61c2bd0bffe1df Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sat, 7 Dec 2024 21:02:31 -0500 Subject: [PATCH] add todo-sp --- selfdrive/selfdrived/selfdrived.py | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/selfdrived/selfdrived.py b/selfdrive/selfdrived/selfdrived.py index 4f79770634..6e87bb1777 100755 --- a/selfdrive/selfdrived/selfdrived.py +++ b/selfdrive/selfdrived/selfdrived.py @@ -248,6 +248,7 @@ class SelfdriveD: else: safety_mismatch = pandaState.safetyModel not in IGNORED_SAFETY_MODES + # TODO-SP: add controlsMismatchLat for controlsAllowedLat # safety mismatch allows some time for pandad to set the safety mode and publish it back from panda if (safety_mismatch and self.sm.frame*DT_CTRL > 10.) or pandaState.safetyRxChecksInvalid or self.mismatch_counter >= 200: self.events.add(EventName.controlsMismatch)