mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
Mazda FP 2.0 support (#20879)
* Mazda FP 2.0 support ECU FW for CX-5 2017 and Mazda3 2017 Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> * Use standard UDS request/reponse, fix missing arg. Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> * Add CX-5 FW test Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> * update/add FW FP Current suported models: CX-5 2017/2021 CX-9 2019/2020 Mazda3 2017/2018 Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> * Add Cx-9 2019 FW FP Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> * Remove comments, remove TESTER_PRESENT_REQUEST from Mazda Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> * add transmission ecu to startup test Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> old-commit-hash: 824f93303d95695a761d10a00b0e9547274db6a9
This commit is contained in:
committed by
GitHub
parent
c0984ebb97
commit
f108d93bc0
@@ -14,6 +14,7 @@ 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.mazda.values import FW_VERSIONS as MAZDA_FW_VERSIONS
|
||||
|
||||
|
||||
NO_API = "NO_API" in os.environ
|
||||
@@ -21,14 +22,13 @@ SUPPORTED_CARS = set(interface_names['toyota'])
|
||||
SUPPORTED_CARS |= set(interface_names['honda'])
|
||||
SUPPORTED_CARS |= set(interface_names['hyundai'])
|
||||
SUPPORTED_CARS |= set(interface_names['volkswagen'])
|
||||
|
||||
SUPPORTED_CARS |= set(interface_names['mazda'])
|
||||
|
||||
try:
|
||||
from xx.pipeline.c.CarState import migration
|
||||
except ImportError:
|
||||
migration = {}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description='Run FW fingerprint on Qlog of route or list of routes')
|
||||
parser.add_argument('route', help='Route or file with list of routes')
|
||||
@@ -120,7 +120,7 @@ if __name__ == "__main__":
|
||||
|
||||
print("Mismatches")
|
||||
found = False
|
||||
for car_fws in [TOYOTA_FW_VERSIONS, HONDA_FW_VERSIONS, HYUNDAI_FW_VERSIONS, VW_FW_VERSIONS]:
|
||||
for car_fws in [TOYOTA_FW_VERSIONS, HONDA_FW_VERSIONS, HYUNDAI_FW_VERSIONS, VW_FW_VERSIONS, MAZDA_FW_VERSIONS]:
|
||||
if live_fingerprint in car_fws:
|
||||
found = True
|
||||
expected = car_fws[live_fingerprint]
|
||||
|
||||
Reference in New Issue
Block a user