Hyundai: limit Kona torque (#25074)

old-commit-hash: a4c90765813e1cc3ab7afbe58cf23b392ec8181c
This commit is contained in:
Adeeb Shihadeh
2022-07-07 17:09:36 -07:00
committed by GitHub
parent 7e10f872cf
commit f03daef602
+6
View File
@@ -32,6 +32,12 @@ class CarControllerParams:
CAR.IONIQ_EV_LTD, CAR.SANTA_FE_PHEV_2022, CAR.SONATA_LF, CAR.KIA_FORTE, CAR.KIA_NIRO_HEV,
CAR.KIA_OPTIMA_H, CAR.KIA_SORENTO, CAR.KIA_STINGER):
self.STEER_MAX = 255
# These cars have significantly more torque than most HKG. Limit to 70% of max.
elif CP.carFingerprint in (CAR.KONA, CAR.KONA_EV, CAR.KONA_HEV):
self.STEER_MAX = 270
# Default for most HKG
else:
self.STEER_MAX = 384