mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
Subaru: add FW for Impreza Limited UDM 2017 (#23802)
* FPv2: Add Subaru Impreza Limited USM 2017
* test_fw_query_on_routes.py: add subaru support
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 412e43206e
This commit is contained in:
@@ -15,6 +15,7 @@ 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
|
||||
from selfdrive.car.subaru.values import FW_VERSIONS as SUBARU_FW_VERSIONS
|
||||
|
||||
|
||||
NO_API = "NO_API" in os.environ
|
||||
@@ -23,6 +24,7 @@ SUPPORTED_CARS |= set(interface_names['honda'])
|
||||
SUPPORTED_CARS |= set(interface_names['hyundai'])
|
||||
SUPPORTED_CARS |= set(interface_names['volkswagen'])
|
||||
SUPPORTED_CARS |= set(interface_names['mazda'])
|
||||
SUPPORTED_CARS |= set(interface_names['subaru'])
|
||||
|
||||
try:
|
||||
from xx.pipeline.c.CarState import migration
|
||||
@@ -120,7 +122,7 @@ if __name__ == "__main__":
|
||||
|
||||
print("Mismatches")
|
||||
found = False
|
||||
for car_fws in [TOYOTA_FW_VERSIONS, HONDA_FW_VERSIONS, HYUNDAI_FW_VERSIONS, VW_FW_VERSIONS, MAZDA_FW_VERSIONS]:
|
||||
for car_fws in [TOYOTA_FW_VERSIONS, HONDA_FW_VERSIONS, HYUNDAI_FW_VERSIONS, VW_FW_VERSIONS, MAZDA_FW_VERSIONS, SUBARU_FW_VERSIONS]:
|
||||
if live_fingerprint in car_fws:
|
||||
found = True
|
||||
expected = car_fws[live_fingerprint]
|
||||
|
||||
Reference in New Issue
Block a user