Skip to content

Commit

Permalink
Reapply "Hyundai Azera: allow fingerprinting without comma power (#31717
Browse files Browse the repository at this point in the history
)" (#31719)

* Revert "Revert "Hyundai Azera: allow fingerprinting without comma power" (#31…"

This reverts commit 1ffc58a.

* we should get EPS

* add EPS to non-logging can 0 query
  • Loading branch information
sshane authored Mar 6, 2024
1 parent 2d2695c commit 6919c37
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion selfdrive/car/hyundai/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def match_fw_to_car_fuzzy(live_fw_versions, offline_fw_versions) -> set[str]:
Request(
[HYUNDAI_VERSION_REQUEST_LONG],
[HYUNDAI_VERSION_RESPONSE],
whitelist_ecus=[Ecu.fwdCamera, Ecu.fwdRadar, Ecu.cornerRadar, Ecu.hvac],
whitelist_ecus=[Ecu.fwdCamera, Ecu.fwdRadar, Ecu.cornerRadar, Ecu.hvac, Ecu.eps],
bus=0,
auxiliary=True,
),
Expand Down Expand Up @@ -801,6 +801,12 @@ def match_fw_to_car_fuzzy(live_fw_versions, offline_fw_versions) -> set[str]:
obd_multiplexing=False,
),
],
# We lose these ECUs without the comma power on these cars.
# Note that we still attempt to match with them when they are present
non_essential_ecus={
Ecu.transmission: [CAR.AZERA_6TH_GEN, CAR.AZERA_HEV_6TH_GEN],
Ecu.engine: [CAR.AZERA_6TH_GEN, CAR.AZERA_HEV_6TH_GEN],
},
extra_ecus=[
(Ecu.adas, 0x730, None), # ADAS Driving ECU on HDA2 platforms
(Ecu.parkingAdas, 0x7b1, None), # ADAS Parking ECU (may exist on all platforms)
Expand Down

0 comments on commit 6919c37

Please sign in to comment.