Subaru AOL: manual-mode ratio gears pause output, not intent

In paddle/manual mode the Subaru transmission reports the simulated
ratio instead of D, which parses as GearShifter.unknown. The generic
disarming_fault() treated the resulting soft wrongGear event as a
disarming fault and cleared the AOL latch; with no fresh MAIN edge on
the return to Drive, AOL never resumed (pre-7.0 it resumed
automatically).

Add a Subaru-scoped intent_disarming_fault() that filters the soft
wrongGear event for qualified cars at unknown gear, dispatched like
the existing Volkswagen/Chrysler overrides. Output stays paused in
manual mode through the normal runtime and panda gates; only the
intent revocation is removed. Generic classification is unchanged.

Tests: openpilot/starpilot/car/subaru/tests/test_aol_manual_gear.py
This commit is contained in:
Sam Yau
2026-11-22 19:45:56 -08:00
parent 008b0cbcf1
commit 459d2e6b94
3 changed files with 130 additions and 0 deletions
+2
View File
@@ -186,4 +186,6 @@ def intent_disarming_fault(CP, events, state, **context):
return volkswagen.intent_disarming_fault(CP, events, state, **context)
if CP.brand == 'chrysler':
return chrysler.intent_disarming_fault(CP, events, state, **context)
if CP.brand == 'subaru':
return subaru.intent_disarming_fault(CP, events, state, **context)
return gm.intent_disarming_fault(CP, events, state, **context)