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

Car Port: Kia Carnival HEV 2025 (HDA2) #1580

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ccdunder
Copy link

@ccdunder ccdunder commented Dec 14, 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: 6c0069dcd5bbb6c1/00000020--6b95507969
  • route with stock system: 6c0069dcd5bbb6c1/00000021--e6c25dde2d
  • car harness used (if comma doesn't sell it, put N/A): Hyundai Q

Dependencies:

Changes:

  1. Adds new car KIA_CARNIVAL_HEV_4TH_GEN. This is the first year the Carnival is available as a hybrid. At the very least the mass is different. Who knows what else. And this follows the apparent convention here to declare HEV versions separately from their ICE siblings.
  2. Fixes can error by adding support for ALT_BUTTONS to HDA2. Otherwise, the following error is logged continuously and can never becomes valid:
    "filename": "opendbc_repo/opendbc/can/parser.cc",
    "funcname": "UpdateValid",
    "levelnum": 40,
    "lineno": ' '230,
    "msg": "0x1CF \'CRUISE_BUTTONS\' NOT SEEN"}',
    
  3. Fixes lane change detection by adding support for ALT_LAMPS.
  4. Fixes cruise resume from standstill by adding support for ALT_BUTTONS.

Parent PR: commaai/openpilot#34246

@github-actions github-actions bot added car related to opendbc/car/ hyundai labels Dec 14, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

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

This is necessary in order to support the 2025 Kia Carnival w/ HDA2,
which uses ALT_BUTTONS.

This seems exceedingly unlikely to cause a regression. If any car wasn't
hitting this branch and now does, it means it was already broken (trying
to use BUTTONS when they don't exist).
@sunnyhaibin
Copy link
Contributor

This PR is a duplicate of #1558.

@ccdunder
Copy link
Author

This PR is a duplicate of #1558.

Sure, the titles are similar but the content is very different. #1558 appears to be a stale draft with fingerprints only. This PR has fixes, routes, and has been verified to work.

@jyoung8607
Copy link
Collaborator

Disclaimer: While I have the ability to merge one of these PRs, I don't set bounty policy or make bounty decisions.

@ccdunder: Welcome to opendbc and openpilot! We like having new contributors. That said, if you're aware there are other potentially duplicate PRs, it's good practice to explicitly mention them and explain why it's necessary to file a separate one. I wouldn't really call that other PR stale, conversations and testing are clearly in progress.

@sunnyhaibin: Haven't reviewed these in depth, but there are definitely differences between these PRs, starting with the existence of Panda changes in this one. Neither of these PRs are ready to merge. To get one of them merge-ready, this would be a great time to onboard and collaborate with a first-time contributor and HKG owner.

@ccdunder ccdunder changed the title Car Port: Kia Carnival 2025 HDA2 (Hybrid & ICE) Car Port: Kia Carnival HEV 2025 (HDA2) Dec 16, 2024
@ccdunder
Copy link
Author

@sunnyhaibin my sincere apologies for my overly critical reply. I heard what sounded like "we don't want your work" and got confused and defensive. My sincere thanks @jyoung8607 for the warm welcome and cool moderation 🙏 Jason and I are collaborating in discord now.

To avoid duplicating efforts, I'm going to focus this set of PRs on the HEV specifically (i.e. drop the ICE fingerprints). There is an additional issue that only affects the ICE model and I only have an HEV to verify with anyhow.

@ccdunder ccdunder force-pushed the kia-carnival-25 branch 3 times, most recently from a8a01ae to 6b73dc8 Compare December 16, 2024 21:34
This is needed for the Kia Caravan '25.
This is needed for the Kia Caravan '25.
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.

3 participants