mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
fix camera malfunction alert in sim
old-commit-hash: 0b433581e3fc2a677b8ac2e22b5bd9e2ee248812
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user