|
|
@ -27,6 +27,13 @@ class CarInterface(CarInterfaceBase): |
|
|
|
ret.steerLimitTimer = 0.4 |
|
|
|
ret.steerLimitTimer = 0.4 |
|
|
|
tire_stiffness_factor = 1. |
|
|
|
tire_stiffness_factor = 1. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ret.maxSteerAngle = 90. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eps_modified = False |
|
|
|
|
|
|
|
for fw in car_fw: |
|
|
|
|
|
|
|
if fw.ecu == "eps" and b"," in fw.fwVersion: |
|
|
|
|
|
|
|
eps_modified = True |
|
|
|
|
|
|
|
|
|
|
|
if candidate == CAR.SANTA_FE: |
|
|
|
if candidate == CAR.SANTA_FE: |
|
|
|
ret.lateralTuning.pid.kf = 0.00005 |
|
|
|
ret.lateralTuning.pid.kf = 0.00005 |
|
|
|
ret.mass = 3982. * CV.LB_TO_KG + STD_CARGO_KG |
|
|
|
ret.mass = 3982. * CV.LB_TO_KG + STD_CARGO_KG |
|
|
@ -58,6 +65,8 @@ class CarInterface(CarInterfaceBase): |
|
|
|
ret.steerRatio = 13.75 * 1.15 |
|
|
|
ret.steerRatio = 13.75 * 1.15 |
|
|
|
ret.lateralTuning.pid.kiBP, ret.lateralTuning.pid.kpBP = [[0.], [0.]] |
|
|
|
ret.lateralTuning.pid.kiBP, ret.lateralTuning.pid.kpBP = [[0.], [0.]] |
|
|
|
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.3], [0.05]] |
|
|
|
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.3], [0.05]] |
|
|
|
|
|
|
|
if eps_modified: |
|
|
|
|
|
|
|
ret.maxSteerAngle = 1000. |
|
|
|
elif candidate in [CAR.ELANTRA, CAR.ELANTRA_GT_I30]: |
|
|
|
elif candidate in [CAR.ELANTRA, CAR.ELANTRA_GT_I30]: |
|
|
|
ret.lateralTuning.pid.kf = 0.00006 |
|
|
|
ret.lateralTuning.pid.kf = 0.00006 |
|
|
|
ret.mass = 1275. + STD_CARGO_KG |
|
|
|
ret.mass = 1275. + STD_CARGO_KG |
|
|
|