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

Add cost to long plan change for smoother lag comp #22923

Merged
merged 9 commits into from
Nov 17, 2021

Conversation

haraschax
Copy link
Contributor

No description provided.

@pd0wm
Copy link
Contributor

pd0wm commented Nov 16, 2021

Jonathan suggested constraining the plan up to the lag compensation amount with what we computed previous iteration. Have you experimented with that already?

@haraschax
Copy link
Contributor Author

That's what this PR does?

@pd0wm
Copy link
Contributor

pd0wm commented Nov 16, 2021

This does a cost for the whole horizon right? I meant a very high cost only up to carParams.longitudinalActuatorDelayUpperBound and no cost after.

@haraschax
Copy link
Contributor Author

haraschax commented Nov 16, 2021

I'm trying up to 1second now. Don't really like the idea of it being car dependent. Then all the tests and cost tuning is car dependent.

@haraschax haraschax marked this pull request as draft November 16, 2021 19:43
@haraschax haraschax marked this pull request as ready for review November 16, 2021 23:03
@haraschax haraschax merged commit b3b45c8 into master Nov 17, 2021
@haraschax haraschax deleted the jerk_cost_lag_compensation branch November 17, 2021 01:57
@sshane
Copy link
Contributor

sshane commented Nov 17, 2021

Just tested a few times since there's not a lot of traffic, but coming to a stop seems to be much smoother. Used to over brake and then slowly creep up. Could be placebo but seems better so far. Excited to try it in traffic

@haraschax
Copy link
Contributor Author

@sshane Especially for large lags it should make a big difference :)

sshane pushed a commit to sshane/openpilot that referenced this pull request Nov 17, 2021
* add plan changing cost

* fix compile

* set weights

* try this cost

* horizon problem

* looks pretty good

* update refs

* update refs

* smoother plan changes
krkeegan pushed a commit to krkeegan/openpilot that referenced this pull request Nov 23, 2021
This is a combination of 16 commits.

Add cost to long plan change for smoother lag comp (commaai#22923)

* add plan changing cost

* fix compile

* set weights

* try this cost

* horizon problem

* looks pretty good

* update refs

* update refs

* smoother plan changes

try new tune

simple and ok

general cleanup

unused

add lag

small touches

integrators are bad

only rav4 has sensitive gas

gravity compensation

this seems to not work

whitespace

tss2 as well

cant trust toyota api

HIGHLANDER is like RAV4

v_pid being from the future makes little sense
krkeegan pushed a commit to krkeegan/openpilot that referenced this pull request Nov 23, 2021
This is a combination of 16 commits.

Add cost to long plan change for smoother lag comp (commaai#22923)

* add plan changing cost

* fix compile

* set weights

* try this cost

* horizon problem

* looks pretty good

* update refs

* update refs

* smoother plan changes

try new tune

simple and ok

general cleanup

unused

add lag

small touches

integrators are bad

only rav4 has sensitive gas

gravity compensation

this seems to not work

whitespace

tss2 as well

cant trust toyota api

HIGHLANDER is like RAV4

v_pid being from the future makes little sense
krkeegan pushed a commit to krkeegan/openpilot that referenced this pull request Nov 23, 2021
This is a combination of 16 commits.

Add cost to long plan change for smoother lag comp (commaai#22923)

* add plan changing cost

* fix compile

* set weights

* try this cost

* horizon problem

* looks pretty good

* update refs

* update refs

* smoother plan changes

try new tune

simple and ok

general cleanup

unused

add lag

small touches

integrators are bad

only rav4 has sensitive gas

gravity compensation

this seems to not work

whitespace

tss2 as well

cant trust toyota api

HIGHLANDER is like RAV4

v_pid being from the future makes little sense
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants