mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 03:22:07 +08:00
fix camera malfunction alert on startup
old-commit-hash: 159e5d40eab676c2d4a97c2d06fc15de88cd9590
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user