Conversation
mzdnick
force-pushed
the
mazda-tja-mrcc-cleanup
branch
from
September 18, 2026 00:16
5fd404d to
b85f071
Compare
mzdnick
force-pushed
the
mazda-tja-mrcc-cleanup
branch
2 times, most recently
from
September 18, 2026 05:15
5d37795 to
f7ba1d6
Compare
mzdnick
force-pushed
the
mazda-tja-mrcc-cleanup
branch
3 times, most recently
from
September 18, 2026 16:14
25c3c1e to
9752d26
Compare
The physical TJA button arms MRCC on bus 0 as a side effect of the press the driver declared as the lateral switch; the frame reaches bus-0 ECUs directly, so the arm cannot be prevented. When MRCC was off before the press, the controller answers the arm with the same MRCC master press the driver would use: one exact active-low CRZ_BTNS shape, one frame per body-paced 200 ms slot, at most three frames per unreconciled arm, never sent while PEDALS reads disarmed, stopped by raw PEDALS confirming the arm is gone. The body drops discrete presses faster than one per 200 ms, and the disarm reaches PEDALS ~80 ms after a press plus the 50 ms confirm, so the 200 ms slot keeps the stand-down ahead of the next press. The driver's own cruise presses, a held TJA press, and radar or stock-ECU transitions all stand down, and ICBM stands down through the whole TJA hold: the wheel's press pattern owns the counter stream until release. A car that never arms through the press stands down after 1 s of brake-free time, since PEDALS cannot witness an arm under braking. The wheel's MRCC master press publishes mainCruise on declared cars, held unpressed until the wheel's first frame. The new safety permission is the exact frame shape gated on the button declaration plus live cruise arming; an undeclared car changes nothing. Validation: 572 mazda car tests + 283 mazda safety tests host-side, ruff clean.
mzdnick
force-pushed
the
mazda-tja-mrcc-cleanup
branch
from
September 18, 2026 17:28
9752d26 to
7e41b02
Compare
mzdnick
marked this pull request as ready for review
September 18, 2026 19:21
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.
Problem
On a TJA-equipped car the wheel TJA button arms MRCC as a side effect of the press, and the wheel's frame reaches bus-0 ECUs directly, so the arm cannot be prevented. The driver pressed the lane keeping button and got a cruise state they did not ask for.
Fix
Validation
Credit
@chinna244
AI Usage
Disclaimer: GLM-5.3 by Z.ai was used to help develop, debug, and document this submission. All changes were reviewed and validated by me.