mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 05:43:40 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user