Skip to content

ui: fix false "NO PANDA" flash on screen wake#37404

Open
andiradulescu wants to merge 2 commits intocommaai:masterfrom
andiradulescu:fix-no-panda-on-wake
Open

ui: fix false "NO PANDA" flash on screen wake#37404
andiradulescu wants to merge 2 commits intocommaai:masterfrom
andiradulescu:fix-no-panda-on-wake

Conversation

@andiradulescu
Copy link
Contributor

@andiradulescu andiradulescu commented Feb 25, 2026

Fixes the annoying issue when sometimes tapping on the screen to wake it up, "NO PANDA" is shown for a split second

@github-actions github-actions bot added the ui label Feb 25, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2026

UI Preview

mici: Videos are identical! View Diff Report
big: Videos are identical! View Diff Report

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 self.sm.frame - self.sm.recv_frame["pandaStates"] > 5 * gui_app.target_fps:
Copy link
Contributor

@sshane sshane Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are the ramifications if we switch to recv_time? easy to keep it deterministic in the ui diff tool?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't see any ramifications, pushed the change now

as for the ui diff tool, the elif branch is dead code during replay, since pandaStates messages are sent continuously

as for being deterministic, in theoretical sense it wasn't deterministic before and it's not deterministic now, since neither rl.get_fps() nor time.monotonic() are overriden in replay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants