opendbc icon indicating copy to clipboard operation
opendbc copied to clipboard

Hyundai: Car Port for Kona 2022

Open sunnyhaibin opened this issue 1 year ago • 5 comments

Checklist

  • [x] added entry to CarInfo in selfdrive/car/*/values.py and ran selfdrive/car/docs.py to generate new docs
  • [x] test route added to routes.py
  • [x] route with stock system: 3bd70ed1a93771dc|2023-09-19--19-16-45
  • [x] route with openpilot: 0099bdb24d82951b/00000005--c38d940b04
  • [x] harness Type: Hyundai O
  • [x] architecture: CAN

Link to all physical parts during installation

Thanks to the community 2022 Hyundai Kona owner big_bull_ (Discord) and johnnathanwood.

Requires

  • https://github.com/commaai/panda/pull/2038

Supersedes https://github.com/commaai/openpilot/pull/30025

sunnyhaibin avatar Aug 20 '24 14:08 sunnyhaibin

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

github-actions[bot] avatar Aug 20 '24 14:08 github-actions[bot]

More Ecu.transmission firmware: 0099bdb24d82951b/00000001--582f1c0a5d

sunnyhaibin avatar Sep 26 '24 20:09 sunnyhaibin

At a glance it looks okay, presuming the lateral accel magnitude tweak was correct, but that's hard to judge with the data available. The test routes are present, but I think they were probably driven on the higher limits, plus torqued wasn't running to judge how the car was performing, plus some actuator output structures have been refactored.

Can you procure a new test route for this one? Have them drive on this branch, with the proposed limits, and take some curves to see where it maxes out.

jyoung8607 avatar Sep 26 '24 22:09 jyoung8607

At a glance it looks okay, presuming the lateral accel magnitude tweak was correct, but that's hard to judge with the data available. The test routes are present, but I think they were probably driven on the higher limits, plus torqued wasn't running to judge how the car was performing, plus some actuator output structures have been refactored.

Can you procure a new test route for this one? Have them drive on this branch, with the proposed limits, and take some curves to see where it maxes out.

@johnnathanwood can you install and update here when you get a chance?

sunnyhaibin avatar Sep 26 '24 22:09 sunnyhaibin

New test route: 0099bdb24d82951b/00000005--c38d940b04

sunnyhaibin avatar Sep 27 '24 06:09 sunnyhaibin

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

github-actions[bot] avatar Nov 17 '24 02:11 github-actions[bot]

So this ALT_LIMITS scheme has a unique failure mode, where a simple bug can silently allow more torque than expected. If the wrong safety mode is selected for any other supported car, the worst case is the RX checks are invalid (so no actuation) and any TX is blocked (since there's overlap).

I already wasn't super happy about this with the original ALT_LIMITS, but this car seems to have even more torque.

Net, I think it's better to get this merged as dashcam than not merge at all, such that it's detected and disabled. We'll have to revisit this at some point to un-dashcam it.

adeebshihadeh avatar Feb 23 '25 07:02 adeebshihadeh

@adeebshihadeh these cars are not dashcammed due to the line below...

ret.dashcamOnly = candidate in {CAR.KIA_OPTIMA_H, }

sshane avatar Jun 02 '25 22:06 sshane