Hyundai Kia Genesis - commaai/openpilot GitHub Wiki

hyundai kia genesis

◄ Home

Harness Guide

Before purchasing a harness for an unsupported vehicle, make sure you are purchasing the correct type.

It's important to look where the notches are on your plug side, and ensure they match correctly.

You can find this connector plugged into your Lane-Keep camera which is located near your rear-view mirror. You will need to pull back some trim to expose the camera. Once you do, unplug the connector and compare it to the types below.

Wire Key


Hyundai A

This connector has unique notches on the top corners and is symmetrical. Wiring diagram found here


Hyundai B

This connector has unique notches evenly in from the sides. It has the same connector as Hyundai C, but the wiring is different. Wiring diagram found here


Hyundai C

This connector has unique notches evenly in from the sides. It has the same connector as Hyundai B, but the wiring is different. Wiring diagram found here


Hyundai D

This connector has unique notches with the left notch being flush with the left of the connector, while the right notch is inward. It has the same connector as Hyundai I, but the wiring is different. Wiring diagram found here


Hyundai E

This connector has unique notches being flush with the sides of the connector. It has the same connector as Hyundai F, but the wiring is different. Wiring diagram found here


Hyundai F

This connector has unique notches being flush with the sides of the connector. It has the same connector as Hyundai E, but the wiring is different. Wiring diagram found here


Hyundai G

This connector has unique notches with the right notch being flush with the right of the connector, while the left notch is inward. It has the same connector as Hyundai H, but the wiring is different. Wiring diagram found here


Hyundai H

This connector has unique notches with the right notch being flush with the right of the connector, while the left notch is inward. It has the same connector as Hyundai G, but the wiring is different. Wiring diagram found here


Hyundai I

This connector has unique notches with the left notch being flush with the left of the connector, while the right notch is inward. It has the same connector as Hyundai D, but the wiring is different. Wiring diagram found here


Hyundai J

This connector has unique wings that protrude from the top of the connector. It is the same connector housing as a Toyota harness, although the wiring is different. Wiring diagram found here


Hyundai K

This connector has unique notches on the top corners and is asymmetrical. It is the mirror image of Hyundai L. Wiring diagram found here


Hyundai L

This connector has unique notches on the top corners and is asymmetrical. It is the mirror image of Hyundai K. Wiring diagram found here


Hyundai M

This connector has unique notches on the top corners and is symmetrical. Wiring diagram found here


Hyundai N

This connector has unique notches on the top corners and is symmetrical. Wiring diagram found here


Hyundai O

This connector has unique notches on the top corners and is symmetrical. Wiring diagram found here


Hyundai P

This harness is currently only used for the Kia EV6 (HDA2 only) Wiring diagram found here


Hyundai Q

This harness is currently only used for the Hyundai IONIQ 5 Wiring diagram found here


Hyundai R

This harness is currently only used for the 2023 Palisade/Telluride HDA2 and Kona EV 2nd Gen HDA2 Wiring diagram found here


Make-Specific Terms

For general terms, go here.

Abbreviation Term Definition
SCC Smart Cruise Control A fancy way to say ACC, or adaptive cruise control.
HDA Highway Driver Assist Combines LFA and SCC with map data to create a more comfortable level 2 experience.
LFA Lane Follow Assist A fancier LKAS that centers but nags

openpilot Capabilities

Lateral Control

Control over the steering wheel.

For HKG cars that have critical damping (ping pong, oscillation, ziggy zaggies) no matter your settings, PID tuning may not be right for your car. You can try INDI tuning instead by adding these five lines to your relevant car in /car/hyundai/interface.py :

ret.lateralTuning.init('indi')
ret.lateralTuning.indi.innerLoopGain = 3.0
ret.lateralTuning.indi.outerLoopGain = 2.0
ret.lateralTuning.indi.timeConstant = 1.0
ret.lateralTuning.indi.actuatorEffectiveness = 1.0

Comment out the lines containing Kp, Ki and Kf with a # at the beginning of the line.

The above is only a start point, and needs tuning like any variable parameter. Raise and lower the LoopGain's by 0.1 at a time, both up or down, until your condition improves. For Stinger and Genesis, the actuatorEffectiveness start point should be 1.5.

Longitudinal Control

Control over the gas and brakes.

At the moment, longitudinal control is provided by the stock system that came with the car. In the future, we will be able to control longitudinally via openpilot for any vehicle whose trims can support SCC, even if not equipped