Skip to content

Commit

Permalink
Update interface.py DP tune
Browse files Browse the repository at this point in the history
  • Loading branch information
cfranyota authored Jul 21, 2023
1 parent 9e58444 commit 4980204
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions selfdrive/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[]): # py
set_long_tune(ret.longitudinalTuning, LongTunes.PEDAL)
elif candidate in TSS2_CAR:
set_long_tune(ret.longitudinalTuning, LongTunes.TSS2)
ret.vEgoStopping = 0.2 # car is near 0.1 to 0.2 when car starts requesting stopping accel
ret.vEgoStarting = 0.2 # needs to be > or == vEgoStopping
ret.stopAccel = -2.0 # Toyota requests -0.4 when stopped
ret.stoppingDecelRate = 0.8 # reach stopping target smoothly - seems to take 0.5 seconds to go from 0 to -0.4
ret.vEgoStopping = 0.15 # car is near 0.1 to 0.2 when car starts requesting stopping accel
ret.vEgoStarting = 0.15 # needs to be > or == vEgoStopping
ret.stopAccel = -0.4 # Toyota requests -0.4 when stopped
ret.stoppingDecelRate = 0.05 # reach stopping target smoothly - seems to take 0.5 seconds to go from 0 to -0.4
else:
set_long_tune(ret.longitudinalTuning, LongTunes.TSS)

Expand Down

0 comments on commit 4980204

Please sign in to comment.