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

longitudinal personality: change via steering wheel distance button #31792

Merged
merged 62 commits into from
Mar 13, 2024

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Mar 8, 2024

Requires #31760

allows:

  • the UI buttons to still work
  • OR'd with the distance button
  • while showing updates in the UI
  • and saving changes from the distance button

@sshane sshane marked this pull request as draft March 8, 2024 04:23
@sshane sshane marked this pull request as draft March 10, 2024 08:46
@sshane sshane marked this pull request as ready for review March 12, 2024 03:23
@sshane sshane merged commit 3d63c70 into master Mar 13, 2024
27 of 28 checks passed
@sshane sshane deleted the person-changing branch March 13, 2024 08:05
programanichiro added a commit to programanichiro/openpilot that referenced this pull request Mar 13, 2024
…ommaai#31792)

Merge commit '3d63c7093afec7ba24f447a44f02f7bea1f7282b' into master-cit0
@sshane sshane linked an issue Mar 13, 2024 that may be closed by this pull request
cydia2020 pushed a commit to cydia2020/dodgypilot that referenced this pull request May 14, 2024
…ommaai#31792)

* 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

---------

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follow distance button changes longitudinal personality
3 participants