From 0b433581e3fc2a677b8ac2e22b5bd9e2ee248812 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 24 Oct 2020 11:46:23 -0700 Subject: [PATCH] fix camera malfunction alert in sim --- 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 4950dc21c6..9a19402195 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -235,9 +235,9 @@ class Controls: self.events.add(EventName.relayMalfunction) if self.sm['plan'].fcw: self.events.add(EventName.fcw) - if self.sm['model'].frameDropPerc > 1 and (not SIMULATION): + if self.sm['model'].frameDropPerc > 1 and not SIMULATION: self.events.add(EventName.modeldLagging) - if not self.sm.alive['frontFrame']: + if not self.sm.alive['frontFrame'] and not SIMULATION: self.events.add(EventName.cameraMalfunction) # Only allow engagement with brake pressed when stopped behind another stopped car