Skip to content

fix: cruise faults should not disable silently#37557

Open
RJWadley wants to merge 4 commits intocommaai:masterfrom
RJWadley:fix-silent-fault
Open

fix: cruise faults should not disable silently#37557
RJWadley wants to merge 4 commits intocommaai:masterfrom
RJWadley:fix-silent-fault

Conversation

@RJWadley
Copy link
Copy Markdown

@RJWadley RJWadley commented Mar 5, 2026

Description

Bug:
When the ACC system faults, USER_DISABLE (wrongCarMode) and IMMEDIATE_DISABLE (accFaulted) could both fire at the same time. USER_DISABLE was checked first, which silences the critical "TAKE CONTROL IMMEDIATELY" alert in favor of a soft disengage chime.

Fix:
Check IMMEDIATE_DISABLE before USER_DISABLE so that if they fire at the same time, the more critical warning takes priority.

Discussed in opendbc#2874

Verification

Drove routes with faults before and after.

Route

Route without fix: 8c4310d5aa130a2a/00000088--c64f683d2d/1
Route with fix: 9feef6a0323edf69/00000109--9ff98faf4e/3

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

This PR has had no activity for 24 days. It will be automatically closed in 7 days if there is no activity.

@github-actions github-actions Bot added the stale label Apr 1, 2026
@nabeelr
Copy link
Copy Markdown

nabeelr commented Apr 2, 2026

I think this is a clean, simple fix, for an important issue, to make unexpected disengagements more noticeable to the driver.

If it can, I think it should be implemented.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

Copy link
Copy Markdown
Collaborator

@jyoung8607 jyoung8607 left a comment

Choose a reason for hiding this comment

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

LGTM at a glance, but need to review more in depth before merging. Rebased to keep the stalebot at bay.

@github-actions github-actions Bot removed the stale label Apr 3, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR has had no activity for 24 days. It will be automatically closed in 7 days if there is no activity.

@github-actions github-actions Bot added the stale label Apr 27, 2026
@github-actions github-actions Bot removed the stale label Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants