Move all fingerprints to fingerprints.py (#30790)

* move fingerpints

* fix circular imports

* fix circular imports

* fix auto fingerprint

* fix those tests

* and controlsd

* add labeler rule

* no defaultdict
old-commit-hash: 28eed156e0a62ab993de6d534bb102a6ede222f7
This commit is contained in:
Justin Newberry
2023-12-18 14:04:27 -08:00
committed by GitHub
parent cbbbaf22b7
commit ff12759e80
38 changed files with 7423 additions and 7339 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ BRAND_TO_PLATFORMS = {brand: [car.value for car in ALL_CARS[brand]] for brand in
PLATFORM_TO_BRAND = dict(sum([[(platform, brand) for platform in BRAND_TO_PLATFORMS[brand]] for brand in BRAND_TO_PLATFORMS], []))
def add_fw_versions(brand, platform, new_fw_versions):
filename = f"{BASEDIR}/selfdrive/car/{brand}/values.py"
filename = f"{BASEDIR}/selfdrive/car/{brand}/fingerprints.py"
with open(filename, "r") as f:
values_py = f.read()