Skip to content

Commit

Permalink
attempt #3
Browse files Browse the repository at this point in the history
  • Loading branch information
wocsor committed Sep 26, 2018
1 parent c071165 commit 4687e06
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions selfdrive/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,18 @@ def get_params(candidate, fingerprint):
cloudlog.warn("ECU Gas Interceptor: %r", ret.enableGasInterceptor)

ret.steerLimitAlert = False
ret.stoppingControl = True if ret.enableGasInterceptor else False
ret.startAccel = 0.5 if ret.enableGasInterceptor else 0.0

ret.longitudinalKpBP = [0., 5., 35.]
ret.longitudinalKpV = [3.6, 2.4, 1.5]
ret.longitudinalKiBP = [0., 35.]
ret.longitudinalKiV = [0.54, 0.36]
ret.stoppingControl = False

if ret.enableGasInterceptor:
ret.startAccel = 0.0
ret.longitudinalKpV = [1.2, 0.8, 0.5]
ret.longitudinalKiV = [0.18, 0.12]
else:
ret.startAccel = 0.0
ret.longitudinalKpV = [3.6, 2.4, 1.5]
ret.longitudinalKiV = [0.54, 0.36]

return ret

Expand Down

0 comments on commit 4687e06

Please sign in to comment.