Hyundai: Add Elantra to allowed longitudinal cars (#22974)

This commit is contained in:
Cruise Brantley
2021-11-18 20:41:09 -06:00
committed by GitHub
parent 73d66ada8d
commit d77438b4e3
+1 -1
View File
@@ -26,7 +26,7 @@ class CarInterface(CarInterfaceBase):
ret.radarOffCan = RADAR_START_ADDR not in fingerprint[1]
# WARNING: disabling radar also disables AEB (and we show the same warning on the instrument cluster as if you manually disabled AEB)
ret.openpilotLongitudinalControl = Params().get_bool("DisableRadar") and candidate in [CAR.SONATA, CAR.SONATA_HYBRID, CAR.PALISADE, CAR.SANTA_FE]
ret.openpilotLongitudinalControl = Params().get_bool("DisableRadar") and candidate in [CAR.SONATA, CAR.SONATA_HYBRID, CAR.PALISADE, CAR.SANTA_FE, CAR.ELANTRA_2021]
ret.pcmCruise = not ret.openpilotLongitudinalControl