mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-08 01:35:48 +08:00
ui: fix false "NO PANDA" flash on screen wake (#37404)
* ui: fix false "NO PANDA" flash on screen wake * ui: use recv_time for panda timeout instead of frame counting * ui: use sm.alive for panda timeout
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import pyray as rl
|
||||
import numpy as np
|
||||
import time
|
||||
import threading
|
||||
@@ -141,7 +140,7 @@ class UIState:
|
||||
# Check ignition status across all pandas
|
||||
if self.panda_type != log.PandaState.PandaType.unknown:
|
||||
self.ignition = any(state.ignitionLine or state.ignitionCan for state in panda_states)
|
||||
elif self.sm.frame - self.sm.recv_frame["pandaStates"] > 5 * rl.get_fps():
|
||||
elif not self.sm.alive["pandaStates"]:
|
||||
self.panda_type = log.PandaState.PandaType.unknown
|
||||
|
||||
# Handle wide road camera state updates
|
||||
|
||||
Reference in New Issue
Block a user