Hyundai: split 2020 Kia Niro PHEV EX Premium - #3722
Conversation
There was a problem hiding this comment.
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
Car behavior reportReplays driving segments through this PR and compares the behavior to master. Testing 260 segments for: HYUNDAI_AZERA_HEV_6TH_GEN, HYUNDAI_ELANTRA_GT_I30, HYUNDAI_ELANTRA_2021, HYUNDAI_ELANTRA_HEV_2021, HYUNDAI_GENESIS, HYUNDAI_IONIQ, HYUNDAI_IONIQ_HEV_2022, HYUNDAI_IONIQ_EV_2020, HYUNDAI_IONIQ_PHEV_2019, HYUNDAI_IONIQ_PHEV, HYUNDAI_KONA_2022, HYUNDAI_KONA_EV, HYUNDAI_KONA_EV_2022, HYUNDAI_KONA_EV_2ND_GEN, HYUNDAI_SANTA_FE, HYUNDAI_SANTA_FE_2022, HYUNDAI_SANTA_FE_HEV_2022, HYUNDAI_SANTA_FE_PHEV_2022, HYUNDAI_SONATA, HYUNDAI_SONATA_LF, HYUNDAI_STARIA_4TH_GEN, HYUNDAI_PALISADE, HYUNDAI_SONATA_HYBRID, HYUNDAI_IONIQ_5, HYUNDAI_IONIQ_6, HYUNDAI_TUCSON_4TH_GEN, HYUNDAI_SANTA_CRUZ_1ST_GEN, HYUNDAI_CUSTIN_1ST_GEN ✅ 0 changed, 260 passed, 0 errors |
… It's now just duplicating the phev varient in the fingerprints to another fingerprint too
Validation
Resolves #3384
I've been using a version of opendbc on my car that just removed the two lines of UNSUPPORTED_LONGITUDINAL and MIN_STEER_32_MPH on my Kia Niro PHEV 2020 EX Premium for a while, but I should have PR'd this a long time ago. I'm just getting around to this now. I've thought the right way to handle this would be to create a new vehicle like KIA_NIRO_PHEV_2020_EX_P, but it would be an issue since the same car would be identified as either the EX or Premium since the fingerprint is the same. I had Codex implement this for me, providing vague instructions so it might find the most elegant solution, and it basically did that, constructing a new car
KIA_NIRO_PHEV_2020, duplicating the same fingerprints for the other version.I'm guessing I should give this a test drive and validate this branch before it's merged into main. I'll do this in the next few days.
Here is a summary of the main points of my session with Codex