Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlander Tuning #690

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions selfdrive/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ def get_params(candidate, fingerprint, vin=""):
ret.safetyParam = 100
ret.wheelbase = 2.78
ret.steerRatio = 16.0
tire_stiffness_factor = 0.444 # not optimized yet
tire_stiffness_factor = 0.7933 # from overtime live tuning result
ret.mass = 4607 * CV.LB_TO_KG + std_cargo #mean between normal and hybrid limited
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.6], [0.05]]
ret.lateralTuning.pid.kf = 0.00006
ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.18], [0.0075]] # from Phil Lee's PR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ki seems way too low (as is, it does nothing). I propose to use the same tuning as the Avalon here, [0.17], [0.03].

Kf at 0.00012 is fine.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will try with your suggested values and get back here. Thanks Riccardo!

Copy link
Author

@daehahn daehahn Jun 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[0.17], [0.03] is better than [0.6], [0.05]. But still it has jerk movement (shaking left-right) with [0.17], [0.03] and [0.17], [0.025] under 35mph. I will try with [0.17], [0.02] today and report it again.

Copy link
Author

@daehahn daehahn Jun 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rbiasini, [0.17], [0.02] also has same jerk movement, but [0.17], [0.0015] was much better. So I updated with old stable parameters, which is [0.18], [0.015]. I used this parameters more than 4 months without any issues. Please review and merge this request.

ret.lateralTuning.pid.kf = 0.00012 # from overtime curve testing result

elif candidate == CAR.AVALON:
stop_and_go = False
Expand Down