From b934aa37d41319cf675e605ded296c3b4bc12537 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 4 Apr 2025 15:39:36 -0400 Subject: [PATCH] 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. --- sunnypilot/mads/mads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunnypilot/mads/mads.py b/sunnypilot/mads/mads.py index 384e48b3f..17816cfa8 100644 --- a/sunnypilot/mads/mads.py +++ b/sunnypilot/mads/mads.py @@ -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):