From cc02043f9b088bfa30195974cf8dc471492980bd Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 15 Dec 2024 17:46:57 -0500 Subject: [PATCH] block tesla --- sunnypilot/mads/helpers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sunnypilot/mads/helpers.py b/sunnypilot/mads/helpers.py index e5ef392da0..e905c1c191 100644 --- a/sunnypilot/mads/helpers.py +++ b/sunnypilot/mads/helpers.py @@ -56,3 +56,8 @@ class MadsParams: if hyundai_cruise_main_toggleable: CP.sunnypilotFlags |= HyundaiFlagsSP.LONGITUDINAL_MAIN_CRUISE_TOGGLEABLE.value CP.safetyConfigs[-1].safetyParam |= Panda.FLAG_HYUNDAI_LONG_MAIN_CRUISE_TOGGLEABLE + + # MADS is currently not supported in Tesla due to lack of consistent states to engage controls + # TODO-SP: To enable MADS for Tesla Identify consistent signals for MADS toggling + if CP.carName == "tesla": + self.params.remove("Mads")