From 159e5d40eab676c2d4a97c2d06fc15de88cd9590 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 26 Oct 2020 19:20:14 -0700 Subject: [PATCH] fix camera malfunction alert on startup --- 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 9a19402195..994d8b35b7 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -237,7 +237,7 @@ class Controls: self.events.add(EventName.fcw) if self.sm['model'].frameDropPerc > 1 and not SIMULATION: self.events.add(EventName.modeldLagging) - if not self.sm.alive['frontFrame'] and not SIMULATION: + if not self.sm.alive['frontFrame'] and (self.sm.frame > 5 / DT_CTRL) and not SIMULATION: self.events.add(EventName.cameraMalfunction) # Only allow engagement with brake pressed when stopped behind another stopped car