Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyundai: Disable longitudinal for HDA2 without ADAS Driving ECU #1295

Merged
merged 10 commits into from
Feb 23, 2025
5 changes: 4 additions & 1 deletion opendbc/car/hyundai/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, experime
CAN = CanBus(None, fingerprint, lka_steering)

if ret.flags & HyundaiFlags.CANFD:
# Shared configuration for CAN-FD cars
ret.experimentalLongitudinalAvailable = candidate not in (CANFD_UNSUPPORTED_LONGITUDINAL_CAR | CANFD_RADAR_SCC_CAR)
if lka_steering and Ecu.adas not in [fw.ecu for fw in car_fw]:
# this needs to be figured out for cars without an ADAS ECU
ret.experimentalLongitudinalAvailable = False

ret.enableBsm = 0x1e5 in fingerprint[CAN.ECAN]

if 0x105 in fingerprint[CAN.ECAN]:
Expand Down