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

VW PQ: Add HCA 5 / 7 mode flipping #58

Merged
merged 36 commits into from
May 16, 2024
Merged

Conversation

dkiiv
Copy link
Owner

@dkiiv dkiiv commented May 16, 2024

No description provided.

@dkiiv dkiiv merged commit beb1d26 into FrogPilot-VW-pr May 16, 2024
14 of 36 checks passed
Copy link

Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

dkiiv added a commit that referenced this pull request May 16, 2024
* initial hca_mode flipping commit

* hot fix**ing**

* bump hysteresis to 5 deg

* increase hysteresis to 13 degree's

* change HCA flipping logic.

* logic change worked, dropping hysteresis limits to test

* switch to NM torque blending

* temporarily bump panda maxsteer to 400

* revert panda edit, refactor torque blend

* refactor, again!

* try ramping the 1NM drop

* bugfix for pseudo STEER_MAX?

* another hotfix

* change rate limit in interpolation, removed apply_driver_steer_torque_limit

* throw out >3nm. switch to HCA7 when requested torque >2nm

* make HCA7 switching a wider band, and add some torque interpolation

* change flipping logic

* fix typo

* bugfix: negative steering angle

* switch to hca7 based on NM rate too

* change from NM rate to steeringRate

* revert back to no rate based hca7 switch

* up deadzone to 13

* 13 up for HCA7 worked, dropping HCA5 down to 8

* fix bug, > not < !

* bugfix: hca7 lock and unlock logic. fixed for reals now!

* change delta up ramp rate when HCA7. refactor HCA switch logic a bit

* added dynamic HCA7 lock behavior, based on NM and angle

* tweak values for HCA mode switching

* switch apply_steer to new_steer in HCA mode switching

* change HCA7 return to center ramp up rate to same as HCA5

* try more conditionals on ramp rate change for HCA7. drop requested steer on first hca7 frame

* refactor new_steer conditional

* adjust deadband high, and adjust lock logic

* incorporate turn signal into logic

* add deadbandLow back to hca7 lock
@dkiiv dkiiv deleted the FrogPilot-VW-hcaFlip-WIP branch May 16, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant