Skip to content

Commit

Permalink
tune scc
Browse files Browse the repository at this point in the history
  • Loading branch information
neokii committed May 31, 2021
1 parent ca5b9e7 commit d2e18e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/hyundai/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), has_relay=False,

# longitudinal
ret.longitudinalTuning.kpBP = [0, 10. * CV.KPH_TO_MS, 20. * CV.KPH_TO_MS, 40. * CV.KPH_TO_MS, 70. * CV.KPH_TO_MS, 100. * CV.KPH_TO_MS, 130. * CV.KPH_TO_MS]
ret.longitudinalTuning.kpV = [0.93, 0.7, 0.52, 0.45, 0.4, 0.33, 0.25]
ret.longitudinalTuning.kpV = [0.93, 0.73, 0.54, 0.46, 0.4, 0.33, 0.25]
ret.longitudinalTuning.kiBP = [0.]
ret.longitudinalTuning.kiV = [0.015]
ret.longitudinalTuning.kfBP = [50. * CV.KPH_TO_MS, 100. * CV.KPH_TO_MS]
Expand All @@ -80,7 +80,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), has_relay=False,
ret.gasMaxV = [0.43, 0.3, 0.24, 0.165, 0.13, 0.11]

ret.brakeMaxBP = [0, 70. * CV.KPH_TO_MS, 130. * CV.KPH_TO_MS]
ret.brakeMaxV = [1.35, 1.3, 1.]
ret.brakeMaxV = [1.35, 1., 0.6]

ret.stoppingBrakeRate = 0.15 # brake_travel/s while trying to stop
ret.startingBrakeRate = 1.0 # brake_travel/s while releasing on restart
Expand Down

0 comments on commit d2e18e8

Please sign in to comment.