-
Notifications
You must be signed in to change notification settings - Fork 9k
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 Kia Sportage Plug-in Hybrid 2023 #30575
HKG: Car Port for Kia Sportage Plug-in Hybrid 2023 #30575
Conversation
@dhimmel @sunnyhaibin any reason not to combine with the current hybrid platform? We should get the HKG port into a state where this is just a fingerprint. |
Initially, the car seemed to do SCC from the radar, but the latest route confirmed it's doing SCC from the camera. |
Great, then let's combine if possible |
@dhimmel let us know when you can get a test route, just need to drive around for 10 minutes, ideally engaging with the system! |
@sshane I have this route from yesterday with id |
I see we have been splitting up the hybrid and plug-in hybrids because of the different masses; we should start using the info in the For now though, we can merge as a separate platform as that will take some large data verification. |
@dhimmel can you put your device on WiFi and upload a short 10 minute route with some engagement? Then we can merge! |
selfdrive/car/tests/routes.py
Outdated
@@ -116,6 +116,7 @@ class CarTestRoute(NamedTuple): | |||
CarTestRoute("6a42c1197b2a8179|2023-09-21--10-23-44", HYUNDAI.KIA_OPTIMA_H_G4_FL), | |||
CarTestRoute("c75a59efa0ecd502|2021-03-11--20-52-55", HYUNDAI.KIA_SELTOS), | |||
CarTestRoute("b3537035ffe6a7d6|2022-10-17--15-23-49", HYUNDAI.KIA_SPORTAGE_HYBRID_5TH_GEN), | |||
CarTestRoute("428412ad82894ba3|2023-12-09--17-01-47", HYUNDAI.KIA_SPORTAGE_PHEV_5TH_GEN, segment=8), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you put your device on WiFi and upload a short 10 minute route with some engagement? Then we can merge!
@sshane I see you've added 428412ad82894ba3|2023-12-09--17-01-47
segment 8 for testing. Would you still like a different route? I can upload another shorter route in the next 2 days if that is helpful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine, but can you get a route where you test the torque/max lateral acceleration it will apply?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you get a route where you test the torque/max lateral acceleration it will apply
Next time I'm near highway, I will try the highway interchange or exit suggestion to get the out of torque warning.
In the meantime, in the 428412ad82894ba3|2023-12-17--17-23-36--6
route at 17:28:13 – 4
, the road took a sharp turn and the OpenPilot oversteered. Not sure if this was due to poor visibility at night with rain and oncoming headlights though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pull and try again? It should not be oversteering as it was.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pull and try again?
What's been holding me up is that even though the C3X is configured to use the kia-sportage-phev-2023-port
branch, it doesn't find the latest commit even when I manually push check. It still says "up to date" but shows a stale commit 42a8a6d as the current version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't find the latest commit even when I manually push check
Ah I think I understand the issue. I think my comma is checking the commaai/openpilot:kia-sportage-phev-2023-port
branch rather than the sunnyhaibin/openpilot-1:kia-sportage-phev-2023-port
branch.
I will install from my fork that I sync and report back using https://smiskol.com/fork/dhimmel/kia-sportage-phev-2023-port
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sshane tagging for re-review with the the latest logs in this thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My experience has been that it still oversteers slightly on long curves. Installed from your fork
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, so @xtian and I find that there is a bit of oversteering on sharp turns with the 2023 Kia Sportage PHEV as of d44e81c.
@Wafflezzbutt reports the same on the 2024 Kia Sportage PHEV (with additional fingerprints added).
I do feel like it overcorrects sometimes. It seems to "lean left" especially around turns, and then over correct back
So @sshane / @sunnyhaibin my questions are:
- is the oversteering issue also present with Hybrid and Gas models of the Kia Sportage 2023+? If so I wonder if the best approach is to merge and then fix all models.
- Independent of 1, how do we go about fixing the oversteeting?
Your car also has a very high lateral accel factor (similar to #30025), and your car consistently overshoots the desired lateral accel, we will need to figure this out before we can merge: |
cf145a2
to
d44e81c
Compare
@@ -27,7 +27,7 @@ def __init__(self, CP): | |||
self.STEER_STEP = 1 # 100 Hz | |||
|
|||
if CP.carFingerprint in CANFD_CAR: | |||
self.STEER_MAX = 270 | |||
self.STEER_MAX = 170 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change in this value will end up applying to many more cars than the 2023 Sportage PHEV, right? Just curious whether the logs and your investigation uncovered a general enhancement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I only did that to test if it fixed the problems. How is it after that change?
I have a 2024 Sportage PHEV that has very few changes from the 2023. If there is anything I can contribute to add it to the compatibility list
THESE SEEM TO WORK FINE:
}, I haven't had a ton of time to test it but it drove around my neighborhood fine |
https://useradmin.comma.ai/?onebox=ad5d1c08bcc42d1a%7C2024-02-15--17-19-23 I do feel like it overcorrects sometimes. It seems to "lean left" especially around turns, and then over correct back |
Is this PR blocked on needing additional route data? |
While The turning radius issue seems to be less of a problem since the 0.9.6 release, I think there may be an issue with how heavy the car is. The PHEV model is 5300 lbs compared to the 3500 on the regular sportage. In experimental mode it seems to have trouble braking if there is a downward slope and it occasionally gets too close to the car in front of it when coming to a complete stop Here is a drive today where this should be obvious: Especially: |
I get a “Driver’s grasp not detected” alert from the stock ACC relatively often while using @dhimmel’s fork. Are others experiencing this? I also frequently get a “Consider taking a break” notice while on short drives. Not sure if that’s related. |
…tage-phev-2023-port
Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:
|
Is there anything I can do to help this get merged? |
We've moved the car interfacing code to our PR_NUMBER=33045
curl -L https://github.com/commaai/openpilot/pull/$PR_NUMBER.patch | sed -e 's/selfdrive\/car/opendbc_repo\/opendbc\/car/g' | git apply -v --reject Simply replace the PR number with your own. Once done, add the files, fix any conflicts, and open a new PR. Alternatively, you may start a new PR from scratch if that is easier for you. |
@xtian or @Wafflezzbutt would either of you like to pick up the mantle and migrate the PR to |
I might be able to, but first I'd need to know why this PR couldn't be merged after almost nine months. |
@xtian my understanding as an onlooker and not a maintainer is that this PR languished because of the oversteering issue and that the original author @sunnyhaibin was occupied with other work. But it looks like @sunnyhaibin has opened commaai/opendbc#1138 and #33341, so we should direct any assistance efforts to those PRs. |
Checklist
selfdrive/car/docs.py
to generate new docs428412ad82894ba3|2023-10-27--15-44-21
428412ad82894ba3|2023-12-09--17-01-47
Link to all physical parts during installation
Thanks to the community 2022 Kia Sportage Plug-in Hybrid owner dhimmels.