feat(sim): gate the DI wired-switch mirror on GTW_brakeLineSwitchType #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/sim-brake-line-switch-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to the DI wired-brake-switch work (#18): make the 0x1D6 mirror a car-config toggle and stop it clobbering UI/manual brake control.
Behaviour
GTW_brakeLineSwitchTypegates whether the ECU brake nodes follow the DI's own wired switch (broadcast on 0x1D6 bit33):DI_brakePedalState.GTW_carConfig0x7FF mux3, so flipping it is one edit in the dash car-config editor (or a[scenario.GTW]entry).Default: VC_ONLY (GTW car-config default + node inits), so the sim's brake nodes keep UI control out of the box; set DI_VC_SHARED for the wired-switch passthrough. (Not the real-car default of DI_VC_SHARED — a deliberate bench choice; the DIR itself never reads this signal.)
Shared helpers in
tesla_frames:normalize_brake_line_switch_type,gtw_brake_line_switch_type(VCLEFT refactored onto them).Tests: VC_ONLY-ignores / DI_VC_SHARED-follows for ESP/IBST + VCLEFT, carconfig mux3 learning, and the GTW golden updated for the VC_ONLY default. Full suite green (3164), ruff clean on changed files.
🤖 Generated with Claude Code