mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-24 09:52:05 +08:00
Update interface.py
This commit is contained in:
@@ -162,9 +162,9 @@ class CarInterface(CarInterfaceBase):
|
||||
|
||||
# hand tuned (August 12, 2024)
|
||||
def custom_tss2_longitudinal_tuning():
|
||||
ret.vEgoStopping = 0.25
|
||||
ret.vEgoStarting = 0.25
|
||||
ret.stoppingDecelRate = 0.3
|
||||
ret.vEgoStopping = 0.10
|
||||
ret.vEgoStarting = 0.01
|
||||
ret.stoppingDecelRate = 0.2
|
||||
|
||||
def default_tss2_longitudinal_tuning():
|
||||
ret.vEgoStopping = 0.25
|
||||
@@ -178,8 +178,8 @@ class CarInterface(CarInterfaceBase):
|
||||
tune = ret.longitudinalTuning
|
||||
if candidate in TSS2_CAR or ret.enableGasInterceptorDEPRECATED:
|
||||
if sp_tss2_long_tune:
|
||||
tune.kiBP = [0., 1., 8., 12., 20., 27., 40.]
|
||||
tune.kiV = [.35, .316, .195, .20, .184, .101, .06]
|
||||
tune.kiBP = [0., 1., 8., 12., 20., 27., 40.]
|
||||
tune.kiV = [.35, .3162, .1965, .1965, .184, .101, .06]
|
||||
custom_tss2_longitudinal_tuning()
|
||||
else:
|
||||
tune.kiBP = [5., 35.]
|
||||
|
||||
Reference in New Issue
Block a user