Subaru preglobal: include front-left wheel speed in movement detection - #3735
Closed
joedlai wants to merge 1 commit into
Closed
Subaru preglobal: include front-left wheel speed in movement detection#3735joedlai wants to merge 1 commit into
joedlai wants to merge 1 commit into
Conversation
Contributor
Car behavior reportReplays driving segments through this PR and compares the behavior to master. Testing 79 segments for: SUBARU_ASCENT, SUBARU_OUTBACK, SUBARU_LEGACY, SUBARU_IMPREZA, SUBARU_IMPREZA_2020, SUBARU_FORESTER, SUBARU_OUTBACK_PREGLOBAL, SUBARU_OUTBACK_PREGLOBAL_2018, SUBARU_FORESTER_2022 ✅ 0 changed, 79 passed, 0 errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Superseded by #3741 to submit this work from khchen428. The code and commits are unchanged. Please continue review on the replacement PR.
Preglobal
Wheel_Speedscontains four 16-bit wheel speeds, with FL beginning at bit 0. The existing 12-bit shift discards most of the FL signal, so motion reported only by FL can be treated as standstill and miss the held-brake motion disengagement. Read the complete first word when detecting movement.Add regressions for each wheel independently, zero/nonzero transitions around the discarded-bit boundary, and disengagement when a wheel starts moving while the brake is held. Both preglobal steering-polarity configurations are covered.
Preglobal platforms remain dashcamOnly and this safety mode is debug-gated; this does not add vehicle support.
Validation: the unchanged baseline fails six regression assertions; the fixed full safety suite runs 3,166 tests (2,774 passed, 392 skipped) and passes the 100% line-coverage gate (2,346/2,346 lines). Ruff, ty, cpplint, codespell, and the repository-configured MISRA analysis pass. An independent DBC roundtrip and 192 single-bit cases across all three preglobal DBC variants find zero missed movement or held-brake disengagements after the fix (36 of each before).