From 5a309daee6a1949eaf4ae0490ae9ec6fcfb3c152 Mon Sep 17 00:00:00 2001 From: dzid26 Date: Sun, 5 Oct 2025 08:38:49 +0100 Subject: [PATCH] docs: clarify pedal press (#1289) Co-authored-by: Jason Wen --- sunnypilot/mads/mads.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sunnypilot/mads/mads.py b/sunnypilot/mads/mads.py index 21e7f7d3e7..7eab55e6ea 100644 --- a/sunnypilot/mads/mads.py +++ b/sunnypilot/mads/mads.py @@ -61,6 +61,7 @@ class ModularAssistiveDrivingSystem: self.unified_engagement_mode = self.params.get_bool("MadsUnifiedEngagementMode") def pedal_pressed_non_gas_pressed(self, CS: structs.CarState) -> bool: + # ignore `pedalPressed` events caused by gas presses if self.events.has(EventName.pedalPressed) and not (CS.gasPressed and not self.selfdrive.CS_prev.gasPressed and self.disengage_on_accelerator): return True