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

Move personality to controlsState #31855

Merged
merged 66 commits into from
Mar 13, 2024
Merged

Move personality to controlsState #31855

merged 66 commits into from
Mar 13, 2024

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Mar 13, 2024

Split from #31792


Large planner diff is due to the default going from standard (as failed param read by plannerd) to aggressive, since capnp default values for old logs are 0.

@sshane sshane added cleanup controls controls/planner related refactor and removed cleanup labels Mar 13, 2024
@sshane sshane force-pushed the personality-to-cs branch from 2f25faf to fe2cf9f Compare March 13, 2024 07:44
@sshane sshane merged commit 29e55f9 into master Mar 13, 2024
35 of 36 checks passed
@sshane sshane deleted the personality-to-cs branch March 13, 2024 07:57
programanichiro added a commit to programanichiro/openpilot that referenced this pull request Mar 13, 2024
Merge commit '29e55f99a54d95215aa79ecf94a22363f82913a6' into master-cit0

# Conflicts:
#	selfdrive/controls/lib/longitudinal_planner.py
cydia2020 pushed a commit to cydia2020/dodgypilot that referenced this pull request May 14, 2024
* start at param

* start by sending personality

* change to personality

* POC: button changes personality

* what's wrong with this?

* fix

* not really possible but fuzzy test catches this

* there's always a typo

* dang, we're dropping messages

* clean up

* no comment

* bump

* rename

* not all cars yet

* works but at what cost

* clean up

* inside settings

* write param so we save the distance button changes

* setChecked activates buttonToggled and already writes param!

* don't need this, we update from longitudinalPlan on changes

* some clean up

* more

* ui

* allow some time for ui to receive and write param

* plannerd: only track changes in case no ui

* Revert "plannerd: only track changes in case no ui"

This reverts commit 2b081aa.

* write in plannerd as well, I assume this is atomic?

* don't write when setting checked (only user clicks)

* better nane

* more

* Update selfdrive/controls/lib/longitudinal_planner.py

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* doesn't write param now

* ParamWatcher is nice

* no debug

* Update translations

* fix

* odd drain sock proc replay behavior

* vanish

* Revert "odd drain sock proc replay behavior"

This reverts commit 29b70b3.

* add GM

* only if OP long

* move personality to controlsState, since eventually it won't be exclusive to long planner

more

bump

* diff without translations

* fix

* put nonblocking

* CS should start at up to date personality always (no ui flicker)

* update toggle on cereal message change

* fix

* fix that

* ubmp

* mypy doesn't know this is an int :(

* update translations

* fix the tests

* revert ui

* not here

* migrate controlsState

* Revert "migrate controlsState" - i see no reason we need to test with
any specific personality

This reverts commit 6063508.

* Update ref_commit

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls controls/planner related refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant