MADS: Soft disable for non-Drive forward gear if in motion (#784)

* MADS: Soft disable for non-Drive forward gear if moving

* test

* revert

* do this first

* Revert "do this first"

This reverts commit 0a4c938b7ebc847955d4c0f8144f565ff5d9a7d9.
This commit is contained in:
Jason Wen
2025-04-04 15:39:36 -04:00
committed by GitHub
parent 84b934033c
commit b934aa37d4
+1 -1
View File
@@ -71,7 +71,7 @@ class ModularAssistiveDrivingSystem:
if self.events.has(EventName.seatbeltNotLatched):
replace_event(EventName.seatbeltNotLatched, EventNameSP.silentSeatbeltNotLatched)
transition_paused_state()
if self.events.has(EventName.wrongGear):
if self.events.has(EventName.wrongGear) and CS.standstill:
replace_event(EventName.wrongGear, EventNameSP.silentWrongGear)
transition_paused_state()
if self.events.has(EventName.reverseGear):