Files
sunnypilot/selfdrive/ui
Zeph 538e1e8a9a soundd: trigger timeout warning during MADS lateral-only (#1717)
* soundd: trigger timeout warning during MADS lateral-only

The selfdrive timeout alert (warningImmediate) only fires when
selfdriveState.enabled is True. During MADS lateral-only mode,
enabled is False even though the system is actively steering.

If selfdrived stops publishing while MADS lateral is active, the
driver gets no audible warning that steering has become unresponsive.

Add selfdriveStateSP to the SubMaster and check mads.active alongside
selfdriveState.enabled so the timeout alert fires whenever the system
is actuating steering.

* test_soundd: add MADS lateral-only timeout test

Test that the selfdrive timeout warning fires when selfdriveState.enabled
is False but selfdriveStateSP.mads.active is True.

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2026-02-25 02:00:07 -05:00
..
2025-12-18 17:15:47 -08:00
2026-02-13 11:41:30 -05:00
2025-10-27 19:59:35 -07:00
2025-10-27 19:59:35 -07:00
2025-10-24 22:00:38 -07:00
2025-11-18 22:27:45 -08:00
2025-11-18 22:27:45 -08:00
2025-11-10 18:08:55 -08:00
2025-08-09 15:00:36 -07:00