From eeb46513c8fa642b4be8385f0faed599e1dfbe1c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 2 Jun 2023 16:07:10 -0700 Subject: [PATCH] not needed --- selfdrive/car/fw_query_definitions.py | 1 - selfdrive/car/fw_versions.py | 2 -- selfdrive/car/hyundai/values.py | 1 - 3 files changed, 4 deletions(-) diff --git a/selfdrive/car/fw_query_definitions.py b/selfdrive/car/fw_query_definitions.py index f4621857e1..9c7132ba02 100755 --- a/selfdrive/car/fw_query_definitions.py +++ b/selfdrive/car/fw_query_definitions.py @@ -82,7 +82,6 @@ class FwQueryConfig: fuzzy_get_platform_codes: Optional[Callable[[List[bytes]], Set[bytes]]] = None # List of ECUs to consider for fuzzy fingerprinting, and an option to require them to exist fuzzy_ecus: List[capnp.lib.capnp._EnumModule] = field(default_factory=set) - fuzzy_ecus_must_exist: bool = False def __post_init__(self): for i in range(len(self.requests)): diff --git a/selfdrive/car/fw_versions.py b/selfdrive/car/fw_versions.py index 828d4904b8..c576906d89 100755 --- a/selfdrive/car/fw_versions.py +++ b/selfdrive/car/fw_versions.py @@ -62,7 +62,6 @@ def match_fw_to_car_fuzzy(fw_versions_dict, config, log=True, exclude=None): # Build lookup table from (addr, sub_addr, fw) to list of candidate cars all_fw_versions = defaultdict(set) all_platform_codes = defaultdict(set) - seen_ecus = defaultdict(bool) for candidate, fw_by_addr in FW_VERSIONS.items(): if MODEL_TO_BRAND[candidate] != 'hyundai': continue @@ -88,7 +87,6 @@ def match_fw_to_car_fuzzy(fw_versions_dict, config, log=True, exclude=None): print(all_platform_codes) match_count = 0 candidate = None - seen_addrs = set() for addr, versions in fw_versions_dict.items(): for version in versions: # All cars that have this FW response on the specified address diff --git a/selfdrive/car/hyundai/values.py b/selfdrive/car/hyundai/values.py index eb5c5cf694..4880e0b3e0 100644 --- a/selfdrive/car/hyundai/values.py +++ b/selfdrive/car/hyundai/values.py @@ -428,7 +428,6 @@ FW_QUERY_CONFIG = FwQueryConfig( fuzzy_get_platform_codes=get_platform_codes, # Hyundai works best with camera and radar (which have standardized platform codes) fuzzy_ecus=[Ecu.fwdRadar, Ecu.fwdCamera], - fuzzy_ecus_must_exist=True, ) FW_VERSIONS = {