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

HKG: Car Port for Genesis GV70 Electrified 2023 (HDA2) #1131

Merged
merged 6 commits into from
Sep 26, 2024

Conversation

sunnyhaibin
Copy link
Contributor

@sunnyhaibin sunnyhaibin commented Aug 20, 2024

Checklist

  • added entry to CAR in selfdrive/car/*/values.py and ran selfdrive/car/docs.py to generate new docs
  • test route added to routes.py
  • route with openpilot: afe09b9f5d3f3548/00000011--15fefe1c50
  • route with openpilot longitudinal: afe09b9f5d3f3548/0000001b--a1129a4a15
  • route with stock system: afe09b9f5d3f3548/00000005--fe8cd35e57
  • car harness used (if comma doesn't sell it, put N/A): Harness Q

Thanks to community 2023 Genesis GV70 Electrified (HDA2) owner gv70e_81046 (Discord).

Requires

Superseded commaai/openpilot#32765

@github-actions github-actions bot added car related to opendbc/car/ hyundai fingerprint labels Aug 20, 2024
Copy link
Contributor

Thanks for contributing to opendbc! 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
    • include a route or your device' dongle ID if relevant

@jyoung8607
Copy link
Collaborator

jyoung8607 commented Sep 24, 2024

Looks like the ACCELERATOR message is common to all CAN-FD EVs. Does it only have gearshift position data on this car, or might it be available on all the others? Might be an opportunity here to reduce complexity rather than increase it.

Also:

This is not done, will need you to add it.

@Net1Pro
Copy link

Net1Pro commented Sep 24, 2024 via email

@jyoung8607 jyoung8607 self-assigned this Sep 24, 2024
@sunnyhaibin
Copy link
Contributor Author

Looks like the ACCELERATOR message is common to all CAN-FD EVs. Does it only have gearshift position data on this car, or might it be available on all the others? Might be an opportunity here to reduce complexity rather than increase it.

The signals in the ACCELERATOR message are only relevant for CAN-FD EV platforms, and for this car, the gearshift position data is not found in GEAR_ALT or GEAR_ALT_2. It's one of the unique quirks of HKG CAN-FD across different models and model years.

This is not done, will need you to add it.

Added back!

@jyoung8607
Copy link
Collaborator

Going to mark this as draft, pending a slight refactor to cleanly support all CAN-FD EV vehicles the same way.

…rified-2023-hda2-port

# Conflicts:
#	opendbc/car/hyundai/carstate.py
@sunnyhaibin sunnyhaibin marked this pull request as ready for review September 26, 2024 17:19
opendbc/car/hyundai/values.py Outdated Show resolved Hide resolved
opendbc/car/hyundai/values.py Outdated Show resolved Hide resolved
opendbc/car/torque_data/override.toml Outdated Show resolved Hide resolved
@jyoung8607
Copy link
Collaborator

jyoung8607 commented Sep 26, 2024

GTM!

  • Safety and openpilot operation equivalent to all the other HKG CAN-FD EVs
  • Lateral accel control performance is reasonable and meets guidelines
  • No complaints of the common HKG issue with HUD grasp-wheel/take-over alerts

Offline validation:

  • Test routes were already uploaded
  • pytest opendbc passes
  • pytest selfdrive/car/tests passes

Caveats:

  • We're not seeing the VIN, but we're also not getting it from the comma fleet EV6

@jyoung8607 jyoung8607 merged commit b11c159 into commaai:master Sep 26, 2024
3 checks passed
@sunnyhaibin sunnyhaibin deleted the gv70-electrified-2023-hda2-port branch September 26, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car related to opendbc/car/ fingerprint hyundai
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants