Hyundai Kia Genesis - nasser2019/CommaAi 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.


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.


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.


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.


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.


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.


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.


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.


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.


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.


Hyundai K

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


Hyundai L

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


Hyundai M

This connector has unique notches on the top corners and is symmetrical.


Hyundai N

This connector has unique notches on the top corners and is symmetrical.


Hyundai O

This connector has unique notches on the top corners and is symmetrical.


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