Skip to content

mazda: dash LKAS button toggles lateral - #14

Draft
mzdnick wants to merge 3 commits into
zoompilot:developfrom
mzdnick:mazda-lka-toggle-v2
Draft

mzdnick wants to merge 3 commits into
zoompilot:developfrom
mzdnick:mazda-lka-toggle-v2

Conversation

@mzdnick

@mzdnick mzdnick commented Sep 14, 2026

Copy link
Copy Markdown

No description provided.

Issue: a settings-menu or camera state can leave the EPS taking our
steer request and applying none of it, with no block or fault.
Fix: detect the silent zero-delivery in CarState and raise
invalidLkasSetting; gate the detection on the steer-to-zero EPS;
drop the LANE_LINES term it superseded.

Superseded by the next commit, which reads the camera's own
intervention bits instead.

Validation: 552 tests on this tree; delivery measured on routes
(LKAS_EFFECTIVE tracks the request when healthy).
CAM_SETTINGS.LKAS_INERVENTION_ON1 and ILKAS_NTERVENTION_ON2 clear together when the lane assist is off
Issue: non-TJA trims expose no wheel button for lateral; the dash LKAS
button is the only switch.
Fix: read the button's edge from the camera setting's level, the same
level that refuses lateral; one lateral switch per car, a declared TJA
button wins; the panda arms lateral on the button's on-press; a stock
cruise openpilot never joined is left alone.
Validation: 891 tests on this tree.
@mzdnick
mzdnick force-pushed the mazda-lka-toggle-v2 branch from 8bf11c1 to 832eba9 Compare September 15, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant