|
|
@ -11,11 +11,14 @@ from selfdrive.car.fw_versions import match_fw_to_car |
|
|
|
from selfdrive.car.toyota.values import FW_VERSIONS as TOYOTA_FW_VERSIONS |
|
|
|
from selfdrive.car.toyota.values import FW_VERSIONS as TOYOTA_FW_VERSIONS |
|
|
|
from selfdrive.car.honda.values import FW_VERSIONS as HONDA_FW_VERSIONS |
|
|
|
from selfdrive.car.honda.values import FW_VERSIONS as HONDA_FW_VERSIONS |
|
|
|
from selfdrive.car.hyundai.values import FW_VERSIONS as HYUNDAI_FW_VERSIONS |
|
|
|
from selfdrive.car.hyundai.values import FW_VERSIONS as HYUNDAI_FW_VERSIONS |
|
|
|
|
|
|
|
from selfdrive.car.volkswagen.values import FW_VERSIONS as VW_FW_VERSIONS |
|
|
|
|
|
|
|
|
|
|
|
from selfdrive.car.toyota.values import FINGERPRINTS as TOYOTA_FINGERPRINTS |
|
|
|
from selfdrive.car.toyota.values import FINGERPRINTS as TOYOTA_FINGERPRINTS |
|
|
|
from selfdrive.car.honda.values import FINGERPRINTS as HONDA_FINGERPRINTS |
|
|
|
from selfdrive.car.honda.values import FINGERPRINTS as HONDA_FINGERPRINTS |
|
|
|
from selfdrive.car.hyundai.values import FINGERPRINTS as HYUNDAI_FINGERPRINTS |
|
|
|
from selfdrive.car.hyundai.values import FINGERPRINTS as HYUNDAI_FINGERPRINTS |
|
|
|
|
|
|
|
from selfdrive.car.volkswagen.values import FINGERPRINTS as VW_FINGERPRINTS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SUPPORTED_CARS = list(TOYOTA_FINGERPRINTS.keys()) + list(HONDA_FINGERPRINTS.keys()) + list(HYUNDAI_FINGERPRINTS.keys())+ list(VW_FINGERPRINTS.keys()) |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
if __name__ == "__main__": |
|
|
|
parser = argparse.ArgumentParser(description='Run FW fingerprint on Qlog of route or list of routes') |
|
|
|
parser = argparse.ArgumentParser(description='Run FW fingerprint on Qlog of route or list of routes') |
|
|
@ -64,7 +67,7 @@ if __name__ == "__main__": |
|
|
|
if args.car is not None: |
|
|
|
if args.car is not None: |
|
|
|
live_fingerprint = args.car |
|
|
|
live_fingerprint = args.car |
|
|
|
|
|
|
|
|
|
|
|
if live_fingerprint not in list(TOYOTA_FINGERPRINTS.keys()) + list(HONDA_FINGERPRINTS.keys()) + list(HYUNDAI_FINGERPRINTS.keys()): |
|
|
|
if live_fingerprint not in SUPPORTED_CARS: |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|
candidates = match_fw_to_car(car_fw) |
|
|
|
candidates = match_fw_to_car(car_fw) |
|
|
@ -83,7 +86,7 @@ if __name__ == "__main__": |
|
|
|
|
|
|
|
|
|
|
|
print("Mismatches") |
|
|
|
print("Mismatches") |
|
|
|
found = False |
|
|
|
found = False |
|
|
|
for car_fws in [TOYOTA_FW_VERSIONS, HONDA_FW_VERSIONS, HYUNDAI_FW_VERSIONS]: |
|
|
|
for car_fws in [TOYOTA_FW_VERSIONS, HONDA_FW_VERSIONS, HYUNDAI_FW_VERSIONS, VW_FW_VERSIONS]: |
|
|
|
if live_fingerprint in car_fws: |
|
|
|
if live_fingerprint in car_fws: |
|
|
|
found = True |
|
|
|
found = True |
|
|
|
expected = car_fws[live_fingerprint] |
|
|
|
expected = car_fws[live_fingerprint] |
|
|
|