|
|
@ -208,9 +208,9 @@ class CarInterface(CarInterfaceBase): |
|
|
|
ret.minEnableSpeed = -1. if (stop_and_go or ret.enableGasInterceptor) else MIN_ACC_SPEED |
|
|
|
ret.minEnableSpeed = -1. if (stop_and_go or ret.enableGasInterceptor) else MIN_ACC_SPEED |
|
|
|
|
|
|
|
|
|
|
|
tune = ret.longitudinalTuning |
|
|
|
tune = ret.longitudinalTuning |
|
|
|
|
|
|
|
tune.deadzoneBP = [0., 9.] |
|
|
|
|
|
|
|
tune.deadzoneV = [.0, .15] |
|
|
|
if candidate in TSS2_CAR or ret.enableGasInterceptor: |
|
|
|
if candidate in TSS2_CAR or ret.enableGasInterceptor: |
|
|
|
tune.deadzoneBP = [0., 8.05] |
|
|
|
|
|
|
|
tune.deadzoneV = [.0, .14] |
|
|
|
|
|
|
|
tune.kpBP = [0., 5., 20.] |
|
|
|
tune.kpBP = [0., 5., 20.] |
|
|
|
tune.kpV = [1.3, 1.0, 0.7] |
|
|
|
tune.kpV = [1.3, 1.0, 0.7] |
|
|
|
tune.kiBP = [0., 5., 12., 20., 27.] |
|
|
|
tune.kiBP = [0., 5., 12., 20., 27.] |
|
|
@ -218,8 +218,6 @@ class CarInterface(CarInterfaceBase): |
|
|
|
if candidate in TSS2_CAR: |
|
|
|
if candidate in TSS2_CAR: |
|
|
|
ret.stoppingDecelRate = 0.3 # reach stopping target smoothly |
|
|
|
ret.stoppingDecelRate = 0.3 # reach stopping target smoothly |
|
|
|
else: |
|
|
|
else: |
|
|
|
tune.deadzoneBP = [0., 9.] |
|
|
|
|
|
|
|
tune.deadzoneV = [.0, .15] |
|
|
|
|
|
|
|
tune.kpBP = [0., 5., 35.] |
|
|
|
tune.kpBP = [0., 5., 35.] |
|
|
|
tune.kiBP = [0., 35.] |
|
|
|
tune.kiBP = [0., 35.] |
|
|
|
tune.kpV = [3.6, 2.4, 1.5] |
|
|
|
tune.kpV = [3.6, 2.4, 1.5] |
|
|
|