refactored to use tune from new long control API (https://github.com/commaai/openpilot/pull/32706)

This commit is contained in:
Rick Lan
2024-06-26 20:32:58 +08:00
parent 7c8ecde8c1
commit 53f11a8955
2 changed files with 1 additions and 5 deletions
+1 -4
View File
@@ -153,10 +153,7 @@ class CarInterface(CarInterfaceBase):
else:
ret.stopAccel = -2.5
ret.stoppingDecelRate = 0.17
tune.kpV = [0.]
tune.kiV = [0.5]
elif candidate in TSS2_CAR:
if candidate in TSS2_CAR:
tune.kpV = [0.0]
tune.kiV = [0.5]
ret.vEgoStopping = 0.25
@@ -220,7 +220,6 @@ class LongitudinalPlanner:
pm.send('longitudinalPlan', plan_send)
# dp - extension
plan_ext_send = messaging.new_message('longitudinalPlanExt')
plan_ext_send.valid = True