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 longitudinal maneuvers #33527

Merged
merged 36 commits into from
Sep 12, 2024
Merged

add longitudinal maneuvers #33527

merged 36 commits into from
Sep 12, 2024

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Sep 9, 2024

from opendbc: https://github.com/commaai/opendbc/blob/ef7102a8ae2334d77ff4b0be512c073e81b01d18/examples/longitudinal-profiles.py

  • uses alert manager similarly to joystick alert
  • enable by setting LongitudinalManeuverMode
  • give remote/local route to generate_report.py
    • checks for user override or not fully enabled
    • relative time
    • checks for pitch
    • localizer accel (not in this PR, there's too many accel signals on the plot and we should make sure to keep the report simple)

@sshane sshane changed the title add longitudinal profiles add longitudinal maneuvers Sep 11, 2024
Comment on lines 127 to 128
if maneuver is None:
print('We are done!')
Copy link
Contributor

Choose a reason for hiding this comment

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

I think wrapping around is better than no maneuvers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without any alert it may be easy to miss that the report is done

tools/longitudinal_maneuvers/maneuversd.py Outdated Show resolved Hide resolved
@sshane
Copy link
Contributor Author

sshane commented Sep 12, 2024

@adeebshihadeh Anything else you think the first iteration needs?

@sshane sshane mentioned this pull request Sep 12, 2024
13 tasks
@sshane sshane merged commit 82f8db8 into master Sep 12, 2024
17 checks passed
@sshane sshane deleted the long-man branch September 12, 2024 21:10
cydia2020 pushed a commit to cydia2020/dodgypilot that referenced this pull request Sep 13, 2024
* add longitudinal profiles

* stash

* unfortunately even longitudinalPlan causes circle

* add to process config

* reach target speed smoothly

* stash

* works

* clean up

* debug alert

* rename

* fix

* better text

* toggle via exp button

* try coming to a stop better, smoother target reaching

* closer to target

* revert controlsd migration

* add description to alert

* generate report from local logs

* hide bad maneuvers

* pdflike

* Revert "pdflike"

This reverts commit 6d4af1b.

* try this

* use alert manager

* fix that check

* wat

* Revert "wat"

This reverts commit 93d0d27.

* some clean up

* rm

* cleanup

* move

* fix test

* more fix

* clean up

* fix that
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.

2 participants