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

Hyundai CAN-FD: Universal gear checks #1284

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

sunnyhaibin
Copy link
Contributor

@sunnyhaibin sunnyhaibin commented Sep 25, 2024

Description

The refactor's goal is to improve the gear checking logic to be applicable to both HDA2 and non-HDA2 Hyundai vehicles, which was previously only applied to non-HDA2 cars.

Verification

This is tested in the following active PRs:

Offline Validation

  • pytest opendbc
  • pytest selfdrive/car/tests
  • selfdrive/test/process_replay/test_processes.py

Supersedes

@github-actions github-actions bot added car related to opendbc/car/ hyundai labels Sep 25, 2024
sunnyhaibin added a commit to sunnypilot/opendbc that referenced this pull request Sep 25, 2024
sunnyhaibin added a commit to sunnypilot/opendbc that referenced this pull request Sep 25, 2024
@jyoung8607 jyoung8607 self-assigned this Sep 26, 2024
@jyoung8607 jyoung8607 marked this pull request as draft September 27, 2024 00:28
…nfd-universal-gear

# Conflicts:
#	opendbc/car/hyundai/interface.py
@sunnyhaibin sunnyhaibin marked this pull request as ready for review September 27, 2024 02:26
@sunnyhaibin
Copy link
Contributor Author

Offline Validation

  • pytest opendbc
  • pytest selfdrive/car/tests
  • selfdrive/test/process_replay/test_processes.py

@jyoung8607
Copy link
Collaborator

This does check out enough to merge, but as a future TODO, there's further simplification possible. According to commaCarSegments, there are no CAN-FD cars that truly depend on 0x130 GEAR_SHIFTER. Every car that has it, has one of the other messages too.

@jyoung8607 jyoung8607 merged commit 97f519b into commaai:master Sep 27, 2024
4 checks passed
@sunnyhaibin sunnyhaibin deleted the hyundai-canfd-universal-gear branch September 27, 2024 02:33
jyoung8607 added a commit that referenced this pull request Sep 27, 2024
* HKG: Car Port for Genesis G80 2024 (2.5T, HDA2)

* Apply #1284

* Apply #1285

* add test route

* Update opendbc/car/hyundai/values.py

Co-authored-by: Jason Young <[email protected]>

---------

Co-authored-by: Jason Young <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car related to opendbc/car/ hyundai
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants