add VW support for fw fingerprint test script
old-commit-hash: 03753165b8b8503f30e5ca8890f483aef1f014f8
This commit is contained in:
@@ -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.honda.values import FW_VERSIONS as HONDA_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.honda.values import FINGERPRINTS as HONDA_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__":
|
||||
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:
|
||||
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
|
||||
|
||||
candidates = match_fw_to_car(car_fw)
|
||||
@@ -83,7 +86,7 @@ if __name__ == "__main__":
|
||||
|
||||
print("Mismatches")
|
||||
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:
|
||||
found = True
|
||||
expected = car_fws[live_fingerprint]
|
||||
|
||||
Reference in New Issue
Block a user