Skip to content

Commit

Permalink
try shane's long settings for DP
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Francis committed May 27, 2022
1 parent 5d32ae7 commit c4971c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion selfdrive/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,16 @@ 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)
# Improved longitudinal tune settings from sshane
ret.minSpeedCan = 0.2 # This shouldn't be higher than vEgoStopping
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.startAccel = 0.0 # Toyota requests 0 instantly, then hands control off to some controller
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.stoppingDecelRate = 0.4 # reach stopping target smoothly - seems to take 0.5 seconds to go from 0 to -0.4
ret.startingAccelRate = 20. # release brakes fast
ret.longitudinalActuatorDelayLowerBound = 0.3
ret.longitudinalActuatorDelayUpperBound = 0.3
else:
set_long_tune(ret.longitudinalTuning, LongTunes.TSS)

Expand Down

0 comments on commit c4971c1

Please sign in to comment.