Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
longitudinal kd tuning (commaai#473)
Browse files Browse the repository at this point in the history
* gas interceptor tuning

* kd for all

* little goes a long way
  • Loading branch information
sshane committed Sep 19, 2021
1 parent 02562a8 commit 356d461
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions selfdrive/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[]): # py
ret.longitudinalTuning.kpV = [1.3, 1.0, 0.7]
ret.longitudinalTuning.kiBP = [0., 5., 12., 20., 27.]
ret.longitudinalTuning.kiV = [.35, .23, .20, .17, .1]
ret.longitudinalTuning.kdBP = [0., 5., 35.]
ret.longitudinalTuning.kdV = [1.6, 1.2, 0.5]
ret.stoppingDecelRate = 0.3 # reach stopping target smoothly
ret.startingAccelRate = 6.0 # release brakes fast
ret.startAccel = 1.2 # Accelerate from 0 faster
Expand All @@ -409,8 +411,10 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[]): # py
ret.longitudinalTuning.deadzoneV = [0., .15]
ret.longitudinalTuning.kpBP = [0., 5., 35.]
ret.longitudinalTuning.kiBP = [0., 35.]
ret.longitudinalTuning.kdBP = [0., 5., 35.]
ret.longitudinalTuning.kpV = [3.6, 2.4, 1.5]
ret.longitudinalTuning.kiV = [0.54, 0.36]
ret.longitudinalTuning.kdV = [2.5, 1.2, 0.5]

return ret

Expand Down

0 comments on commit 356d461

Please sign in to comment.