From a45a2861dd568837e8ee7283defc55d0d8c43aee Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 13 Feb 2026 18:03:38 -0500 Subject: [PATCH] Tesla: add fingerprint for Model 3 Performance HW4 (#407) * Fingerprint Tesla Model 3 Performance HW4 Added Tesla Model 3 Performance HW4 (Highland) Fingerprint * Tesla Model 3 Performance Fingerprint Added Fingerprint via fingerprints_ext * Apply suggestions from code review * not hyundai * wrong dir --------- Co-authored-by: flberger1987 --- opendbc/car/tesla/fingerprints.py | 4 ++++ opendbc/sunnypilot/car/tesla/fingerprints_ext.py | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 opendbc/sunnypilot/car/tesla/fingerprints_ext.py diff --git a/opendbc/car/tesla/fingerprints.py b/opendbc/car/tesla/fingerprints.py index 8d4b185e..5fe292bc 100644 --- a/opendbc/car/tesla/fingerprints.py +++ b/opendbc/car/tesla/fingerprints.py @@ -1,6 +1,8 @@ """ AUTO-FORMATTED USING opendbc/car/debug/format_fingerprints.py, EDIT STRUCTURE THERE.""" from opendbc.car.structs import CarParams from opendbc.car.tesla.values import CAR +from opendbc.sunnypilot.car.fingerprints_ext import merge_fw_versions +from opendbc.sunnypilot.car.tesla.fingerprints_ext import FW_VERSIONS_EXT Ecu = CarParams.Ecu @@ -48,3 +50,5 @@ FW_VERSIONS = { ], }, } + +FW_VERSIONS = merge_fw_versions(FW_VERSIONS, FW_VERSIONS_EXT) diff --git a/opendbc/sunnypilot/car/tesla/fingerprints_ext.py b/opendbc/sunnypilot/car/tesla/fingerprints_ext.py new file mode 100644 index 00000000..f0009db0 --- /dev/null +++ b/opendbc/sunnypilot/car/tesla/fingerprints_ext.py @@ -0,0 +1,12 @@ +from opendbc.car.structs import CarParams +from opendbc.car.tesla.values import CAR + +Ecu = CarParams.Ecu + +FW_VERSIONS_EXT = { + CAR.TESLA_MODEL_3: { + (Ecu.eps, 0x730, None): [ + b'TeMYG4_Main_0.0.0 (67),E4HP015.02.1', + ], + }, +}