fix camera malfunction alert in sim

pull/2411/head
Adeeb Shihadeh 5 years ago
parent 9a605d2617
commit 0b433581e3
  1. 4
      selfdrive/controls/controlsd.py

@ -235,9 +235,9 @@ class Controls:
self.events.add(EventName.relayMalfunction) self.events.add(EventName.relayMalfunction)
if self.sm['plan'].fcw: if self.sm['plan'].fcw:
self.events.add(EventName.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) 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) self.events.add(EventName.cameraMalfunction)
# Only allow engagement with brake pressed when stopped behind another stopped car # Only allow engagement with brake pressed when stopped behind another stopped car

Loading…
Cancel
Save