-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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 Niro Plug-in Hybrid 2022 #30576
Conversation
@@ -112,6 +112,7 @@ class CAR(StrEnum): | |||
KIA_NIRO_EV = "KIA NIRO EV 2020" | |||
KIA_NIRO_EV_2ND_GEN = "KIA NIRO EV 2ND GEN" | |||
KIA_NIRO_PHEV = "KIA NIRO HYBRID 2019" | |||
KIA_NIRO_PHEV_2022 = "KIA NIRO PLUG-IN HYBRID 2022" |
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 we combine with KIA_NIRO_HEV_2021
?
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 needs to be separated as this car would fault if we send the signals from this block under hyundaican.py
:
openpilot/selfdrive/car/hyundai/hyundaican.py
Lines 36 to 57 in bc70c94
if car_fingerprint in (CAR.SONATA, CAR.PALISADE, CAR.KIA_NIRO_EV, CAR.KIA_NIRO_HEV_2021, CAR.SANTA_FE, | |
CAR.IONIQ_EV_2020, CAR.IONIQ_PHEV, CAR.KIA_SELTOS, CAR.ELANTRA_2021, CAR.GENESIS_G70_2020, | |
CAR.ELANTRA_HEV_2021, CAR.SONATA_HYBRID, CAR.KONA_EV, CAR.KONA_HEV, CAR.KONA_EV_2022, | |
CAR.SANTA_FE_2022, CAR.KIA_K5_2021, CAR.IONIQ_HEV_2022, CAR.SANTA_FE_HEV_2022, | |
CAR.SANTA_FE_PHEV_2022, CAR.KIA_STINGER_2022, CAR.KIA_K5_HEV_2020, CAR.KIA_CEED, | |
CAR.AZERA_6TH_GEN, CAR.AZERA_HEV_6TH_GEN, CAR.CUSTIN_1ST_GEN): | |
values["CF_Lkas_LdwsActivemode"] = int(left_lane) + (int(right_lane) << 1) | |
values["CF_Lkas_LdwsOpt_USM"] = 2 | |
# FcwOpt_USM 5 = Orange blinking car + lanes | |
# FcwOpt_USM 4 = Orange car + lanes | |
# FcwOpt_USM 3 = Green blinking car + lanes | |
# FcwOpt_USM 2 = Green car + lanes | |
# FcwOpt_USM 1 = White car + lanes | |
# FcwOpt_USM 0 = No car + lanes | |
values["CF_Lkas_FcwOpt_USM"] = 2 if enabled else 1 | |
# SysWarning 4 = keep hands on wheel | |
# SysWarning 5 = keep hands on wheel (red) | |
# SysWarning 6 = keep hands on wheel (red) + beep | |
# Note: the warning is hidden while the blinkers are on | |
values["CF_Lkas_SysWarning"] = 4 if sys_warning else 0 |
thanks! |
Checklist
selfdrive/car/docs.py
to generate new docs23349923ba5c4e3b|2023-12-01--21-56-00
23349923ba5c4e3b|2023-12-02--08-51-54
Link to all physical parts during installation
Thanks to the community 2022 Kia Niro Plug-in Hybrid owner michaelstruble (Discord).