selfdrive.car.hyundai package

Submodules

selfdrive.car.hyundai.carcontroller module

class selfdrive.car.hyundai.carcontroller.CarController(dbc_name, CP, VM)[source]

Bases: object

update(CC, CS)[source]
selfdrive.car.hyundai.carcontroller.process_hud_alert(enabled, fingerprint, hud_control)[source]

selfdrive.car.hyundai.carstate module

class selfdrive.car.hyundai.carstate.CarState(CP)[source]

Bases: CarStateBase

static get_cam_can_parser(CP)[source]
static get_cam_can_parser_canfd(CP)[source]
static get_can_parser(CP)[source]
static get_can_parser_canfd(CP)[source]
update(cp, cp_cam)[source]
update_canfd(cp, cp_cam)[source]

selfdrive.car.hyundai.hyundaican module

selfdrive.car.hyundai.hyundaican.create_acc_commands(packer, enabled, accel, jerk, idx, lead_visible, set_speed, stopping, gas_pressed)[source]
selfdrive.car.hyundai.hyundaican.create_acc_opt(packer)[source]
selfdrive.car.hyundai.hyundaican.create_clu11(packer, frame, clu11, button, car_fingerprint)[source]
selfdrive.car.hyundai.hyundaican.create_frt_radar_opt(packer)[source]
selfdrive.car.hyundai.hyundaican.create_lfahda_mfc(packer, enabled, hda_set_speed=0)[source]
selfdrive.car.hyundai.hyundaican.create_lkas11(packer, frame, car_fingerprint, apply_steer, steer_req, lkas11, sys_warning, sys_state, enabled, left_lane, right_lane, left_lane_depart, right_lane_depart)[source]

selfdrive.car.hyundai.hyundaicanfd module

selfdrive.car.hyundai.hyundaicanfd.create_buttons(packer, cnt, btn)[source]
selfdrive.car.hyundai.hyundaicanfd.create_cam_0x2a4(packer, camera_values)[source]
selfdrive.car.hyundai.hyundaicanfd.create_cruise_info(packer, cruise_info_copy, cancel)[source]
selfdrive.car.hyundai.hyundaicanfd.create_lfahda_cluster(packer, enabled)[source]
selfdrive.car.hyundai.hyundaicanfd.create_lkas(packer, CP, enabled, lat_active, apply_steer)[source]

selfdrive.car.hyundai.interface module

class selfdrive.car.hyundai.interface.CarInterface(CP, CarController, CarState)[source]

Bases: CarInterfaceBase

apply(c)[source]
static get_params(candidate, fingerprint={0: {}, 1: {}, 2: {}, 3: {}, 4: {}, 5: {}, 6: {}, 7: {}}, car_fw=[], disable_radar=False)[source]
static get_pid_accel_limits(CP, current_speed, cruise_speed)[source]
static init(CP, logcan, sendcan)[source]

selfdrive.car.hyundai.radar_interface module

class selfdrive.car.hyundai.radar_interface.RadarInterface(CP)[source]

Bases: RadarInterfaceBase

update(can_strings)[source]
selfdrive.car.hyundai.radar_interface.get_radar_can_parser(CP)[source]

selfdrive.car.hyundai.values module

class selfdrive.car.hyundai.values.Buttons[source]

Bases: object

CANCEL = 4
GAP_DIST = 3
NONE = 0
RES_ACCEL = 1
SET_DECEL = 2
class selfdrive.car.hyundai.values.CAR[source]

Bases: object

ELANTRA = 'HYUNDAI ELANTRA 2017'
ELANTRA_2021 = 'HYUNDAI ELANTRA 2021'
ELANTRA_GT_I30 = 'HYUNDAI I30 N LINE 2019 & GT 2018 DCT'
ELANTRA_HEV_2021 = 'HYUNDAI ELANTRA HYBRID 2021'
GENESIS_G70 = 'GENESIS G70 2018'
GENESIS_G70_2020 = 'GENESIS G70 2020'
GENESIS_G80 = 'GENESIS G80 2017'
GENESIS_G90 = 'GENESIS G90 2017'
HYUNDAI_GENESIS = 'HYUNDAI GENESIS 2015-2016'
IONIQ = 'HYUNDAI IONIQ HYBRID 2017-2019'
IONIQ_5 = 'HYUNDAI IONIQ 5 2022'
IONIQ_EV_2020 = 'HYUNDAI IONIQ ELECTRIC 2020'
IONIQ_EV_LTD = 'HYUNDAI IONIQ ELECTRIC LIMITED 2019'
IONIQ_HEV_2022 = 'HYUNDAI IONIQ HYBRID 2020-2022'
IONIQ_PHEV = 'HYUNDAI IONIQ PHEV 2020'
IONIQ_PHEV_2019 = 'HYUNDAI IONIQ PLUG-IN HYBRID 2019'
KIA_CEED = 'KIA CEED INTRO ED 2019'
KIA_EV6 = 'KIA EV6 2022'
KIA_FORTE = 'KIA FORTE E 2018 & GT 2021'
KIA_K5_2021 = 'KIA K5 2021'
KIA_NIRO_EV = 'KIA NIRO EV 2020'
KIA_NIRO_HEV_2021 = 'KIA NIRO HYBRID 2021'
KIA_NIRO_PHEV = 'KIA NIRO HYBRID 2019'
KIA_OPTIMA = 'KIA OPTIMA SX 2019 & 2016'
KIA_OPTIMA_H = 'KIA OPTIMA HYBRID 2017 & SPORTS 2019'
KIA_SELTOS = 'KIA SELTOS 2021'
KIA_SORENTO = 'KIA SORENTO GT LINE 2018'
KIA_STINGER = 'KIA STINGER GT2 2018'
KONA = 'HYUNDAI KONA 2020'
KONA_EV = 'HYUNDAI KONA ELECTRIC 2019'
KONA_EV_2022 = 'HYUNDAI KONA ELECTRIC 2022'
KONA_HEV = 'HYUNDAI KONA HYBRID 2020'
PALISADE = 'HYUNDAI PALISADE 2020'
SANTA_FE = 'HYUNDAI SANTA FE 2019'
SANTA_FE_2022 = 'HYUNDAI SANTA FE 2022'
SANTA_FE_HEV_2022 = 'HYUNDAI SANTA FE HYBRID 2022'
SANTA_FE_PHEV_2022 = 'HYUNDAI SANTA FE PlUG-IN HYBRID 2022'
SONATA = 'HYUNDAI SONATA 2020'
SONATA_HYBRID = 'HYUNDAI SONATA HYBRID 2021'
SONATA_LF = 'HYUNDAI SONATA 2019'
TUCSON = 'HYUNDAI TUCSON 2019'
TUCSON_HYBRID_4TH_GEN = 'HYUNDAI TUCSON HYBRID 4TH GEN'
VELOSTER = 'HYUNDAI VELOSTER 2019'
class selfdrive.car.hyundai.values.CarControllerParams(CP)[source]

Bases: object

ACCEL_MAX = 2.0
ACCEL_MIN = -3.5
class selfdrive.car.hyundai.values.HyundaiCarInfo(name: str, package: str = 'Smart Cruise Control (SCC) & LKAS', video_link: Union[str, NoneType] = None, footnotes: List[enum.Enum] = <factory>, min_steer_speed: Union[float, NoneType] = None, min_enable_speed: Union[float, NoneType] = None, harness: enum.Enum = <Harness.none: 'None'>)[source]

Bases: CarInfo

package: str = 'Smart Cruise Control (SCC) & LKAS'
class selfdrive.car.hyundai.values.HyundaiFlags(value)[source]

Bases: IntFlag

An enumeration.

CANFD_ALT_BUTTONS = 2
CANFD_HDA2 = 1

Module contents