@ -6,7 +6,7 @@ from cereal import car
from panda . python import uds
from panda . python import uds
from openpilot . common . conversions import Conversions as CV
from openpilot . common . conversions import Conversions as CV
from openpilot . selfdrive . car import CarSpecs , DbcDict , PlatformConfig , Platforms , dbc_dict
from openpilot . selfdrive . car import CarSpecs , DbcDict , PlatformConfig , Platforms , dbc_dict
from openpilot . selfdrive . car . docs_definitions import CarFootnote , CarHarness , CarInfo , CarParts , Column
from openpilot . selfdrive . car . docs_definitions import CarFootnote , CarHarness , CarDocs , CarParts , Column
from openpilot . selfdrive . car . fw_query_definitions import FwQueryConfig , Request , p16
from openpilot . selfdrive . car . fw_query_definitions import FwQueryConfig , Request , p16
Ecu = car . CarParams . Ecu
Ecu = car . CarParams . Ecu
@ -104,7 +104,7 @@ class Footnote(Enum):
@dataclass
@dataclass
class HyundaiCarInfo ( CarInfo ) :
class HyundaiCarDocs ( CarDocs ) :
package : str = " Smart Cruise Control (SCC) "
package : str = " Smart Cruise Control (SCC) "
def init_make ( self , CP : car . CarParams ) :
def init_make ( self , CP : car . CarParams ) :
@ -136,14 +136,14 @@ class CAR(Platforms):
# Hyundai
# Hyundai
AZERA_6TH_GEN = HyundaiPlatformConfig (
AZERA_6TH_GEN = HyundaiPlatformConfig (
" HYUNDAI AZERA 6TH GEN " ,
" HYUNDAI AZERA 6TH GEN " ,
[ HyundaiCarInfo ( " Hyundai Azera 2022 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Azera 2022 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
CarSpecs ( mass = 1600 , wheelbase = 2.885 , steerRatio = 14.5 ) ,
CarSpecs ( mass = 1600 , wheelbase = 2.885 , steerRatio = 14.5 ) ,
)
)
AZERA_HEV_6TH_GEN = HyundaiPlatformConfig (
AZERA_HEV_6TH_GEN = HyundaiPlatformConfig (
" HYUNDAI AZERA HYBRID 6TH GEN " ,
" HYUNDAI AZERA HYBRID 6TH GEN " ,
[
[
HyundaiCarInfo ( " Hyundai Azera Hybrid 2019 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarDocs ( " Hyundai Azera Hybrid 2019 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarInfo ( " Hyundai Azera Hybrid 2020 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ,
HyundaiCarDocs ( " Hyundai Azera Hybrid 2020 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ,
] ,
] ,
CarSpecs ( mass = 1675 , wheelbase = 2.885 , steerRatio = 14.5 ) ,
CarSpecs ( mass = 1675 , wheelbase = 2.885 , steerRatio = 14.5 ) ,
flags = HyundaiFlags . HYBRID ,
flags = HyundaiFlags . HYBRID ,
@ -152,8 +152,8 @@ class CAR(Platforms):
" HYUNDAI ELANTRA 2017 " ,
" HYUNDAI ELANTRA 2017 " ,
[
[
# TODO: 2017-18 could be Hyundai G
# TODO: 2017-18 could be Hyundai G
HyundaiCarInfo ( " Hyundai Elantra 2017-18 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_b ] ) ) ,
HyundaiCarDocs ( " Hyundai Elantra 2017-18 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_b ] ) ) ,
HyundaiCarInfo ( " Hyundai Elantra 2019 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ,
HyundaiCarDocs ( " Hyundai Elantra 2019 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ,
] ,
] ,
# steerRatio: 14 is Stock | Settled Params Learner values are steerRatio: 15.401566348670535, stiffnessFactor settled on 1.0081302973865127
# steerRatio: 14 is Stock | Settled Params Learner values are steerRatio: 15.401566348670535, stiffnessFactor settled on 1.0081302973865127
CarSpecs ( mass = 1275 , wheelbase = 2.7 , steerRatio = 15.4 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1275 , wheelbase = 2.7 , steerRatio = 15.4 , tireStiffnessFactor = 0.385 ) ,
@ -162,21 +162,21 @@ class CAR(Platforms):
ELANTRA_GT_I30 = HyundaiPlatformConfig (
ELANTRA_GT_I30 = HyundaiPlatformConfig (
" HYUNDAI I30 N LINE 2019 & GT 2018 DCT " ,
" HYUNDAI I30 N LINE 2019 & GT 2018 DCT " ,
[
[
HyundaiCarInfo ( " Hyundai Elantra GT 2017-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
HyundaiCarDocs ( " Hyundai Elantra GT 2017-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
HyundaiCarInfo ( " Hyundai i30 2017-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
HyundaiCarDocs ( " Hyundai i30 2017-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
] ,
] ,
ELANTRA . specs ,
ELANTRA . specs ,
flags = HyundaiFlags . LEGACY | HyundaiFlags . CLUSTER_GEARS | HyundaiFlags . MIN_STEER_32_MPH ,
flags = HyundaiFlags . LEGACY | HyundaiFlags . CLUSTER_GEARS | HyundaiFlags . MIN_STEER_32_MPH ,
)
)
ELANTRA_2021 = HyundaiPlatformConfig (
ELANTRA_2021 = HyundaiPlatformConfig (
" HYUNDAI ELANTRA 2021 " ,
" HYUNDAI ELANTRA 2021 " ,
[ HyundaiCarInfo ( " Hyundai Elantra 2021-23 " , video_link = " https://youtu.be/_EdYQtV52-c " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Elantra 2021-23 " , video_link = " https://youtu.be/_EdYQtV52-c " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
CarSpecs ( mass = 2800 * CV . LB_TO_KG , wheelbase = 2.72 , steerRatio = 12.9 , tireStiffnessFactor = 0.65 ) ,
CarSpecs ( mass = 2800 * CV . LB_TO_KG , wheelbase = 2.72 , steerRatio = 12.9 , tireStiffnessFactor = 0.65 ) ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
)
)
ELANTRA_HEV_2021 = HyundaiPlatformConfig (
ELANTRA_HEV_2021 = HyundaiPlatformConfig (
" HYUNDAI ELANTRA HYBRID 2021 " ,
" HYUNDAI ELANTRA HYBRID 2021 " ,
[ HyundaiCarInfo ( " Hyundai Elantra Hybrid 2021-23 " , video_link = " https://youtu.be/_EdYQtV52-c " ,
[ HyundaiCarDocs ( " Hyundai Elantra Hybrid 2021-23 " , video_link = " https://youtu.be/_EdYQtV52-c " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
CarSpecs ( mass = 3017 * CV . LB_TO_KG , wheelbase = 2.72 , steerRatio = 12.9 , tireStiffnessFactor = 0.65 ) ,
CarSpecs ( mass = 3017 * CV . LB_TO_KG , wheelbase = 2.72 , steerRatio = 12.9 , tireStiffnessFactor = 0.65 ) ,
flags = HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
flags = HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
@ -185,129 +185,129 @@ class CAR(Platforms):
" HYUNDAI GENESIS 2015-2016 " ,
" HYUNDAI GENESIS 2015-2016 " ,
[
[
# TODO: check 2015 packages
# TODO: check 2015 packages
HyundaiCarInfo ( " Hyundai Genesis 2015-16 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_j ] ) ) ,
HyundaiCarDocs ( " Hyundai Genesis 2015-16 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_j ] ) ) ,
HyundaiCarInfo ( " Genesis G80 2017 " , " All " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_j ] ) ) ,
HyundaiCarDocs ( " Genesis G80 2017 " , " All " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_j ] ) ) ,
] ,
] ,
CarSpecs ( mass = 2060 , wheelbase = 3.01 , steerRatio = 16.5 , minSteerSpeed = 60 * CV . KPH_TO_MS ) ,
CarSpecs ( mass = 2060 , wheelbase = 3.01 , steerRatio = 16.5 , minSteerSpeed = 60 * CV . KPH_TO_MS ) ,
flags = HyundaiFlags . CHECKSUM_6B | HyundaiFlags . LEGACY ,
flags = HyundaiFlags . CHECKSUM_6B | HyundaiFlags . LEGACY ,
)
)
IONIQ = HyundaiPlatformConfig (
IONIQ = HyundaiPlatformConfig (
" HYUNDAI IONIQ HYBRID 2017-2019 " ,
" HYUNDAI IONIQ HYBRID 2017-2019 " ,
[ HyundaiCarInfo ( " Hyundai Ioniq Hybrid 2017-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Ioniq Hybrid 2017-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . MIN_STEER_32_MPH ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . MIN_STEER_32_MPH ,
)
)
IONIQ_HEV_2022 = HyundaiPlatformConfig (
IONIQ_HEV_2022 = HyundaiPlatformConfig (
" HYUNDAI IONIQ HYBRID 2020-2022 " ,
" HYUNDAI IONIQ HYBRID 2020-2022 " ,
[ HyundaiCarInfo ( " Hyundai Ioniq Hybrid 2020-22 " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] , # TODO: confirm 2020-21 harness,
[ HyundaiCarDocs ( " Hyundai Ioniq Hybrid 2020-22 " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] , # TODO: confirm 2020-21 harness,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . LEGACY ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . LEGACY ,
)
)
IONIQ_EV_LTD = HyundaiPlatformConfig (
IONIQ_EV_LTD = HyundaiPlatformConfig (
" HYUNDAI IONIQ ELECTRIC LIMITED 2019 " ,
" HYUNDAI IONIQ ELECTRIC LIMITED 2019 " ,
[ HyundaiCarInfo ( " Hyundai Ioniq Electric 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Ioniq Electric 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . EV | HyundaiFlags . LEGACY | HyundaiFlags . MIN_STEER_32_MPH ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . EV | HyundaiFlags . LEGACY | HyundaiFlags . MIN_STEER_32_MPH ,
)
)
IONIQ_EV_2020 = HyundaiPlatformConfig (
IONIQ_EV_2020 = HyundaiPlatformConfig (
" HYUNDAI IONIQ ELECTRIC 2020 " ,
" HYUNDAI IONIQ ELECTRIC 2020 " ,
[ HyundaiCarInfo ( " Hyundai Ioniq Electric 2020 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Ioniq Electric 2020 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . EV ,
flags = HyundaiFlags . EV ,
)
)
IONIQ_PHEV_2019 = HyundaiPlatformConfig (
IONIQ_PHEV_2019 = HyundaiPlatformConfig (
" HYUNDAI IONIQ PLUG-IN HYBRID 2019 " ,
" HYUNDAI IONIQ PLUG-IN HYBRID 2019 " ,
[ HyundaiCarInfo ( " Hyundai Ioniq Plug-in Hybrid 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Ioniq Plug-in Hybrid 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . MIN_STEER_32_MPH ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . MIN_STEER_32_MPH ,
)
)
IONIQ_PHEV = HyundaiPlatformConfig (
IONIQ_PHEV = HyundaiPlatformConfig (
" HYUNDAI IONIQ PHEV 2020 " ,
" HYUNDAI IONIQ PHEV 2020 " ,
[ HyundaiCarInfo ( " Hyundai Ioniq Plug-in Hybrid 2020-22 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Ioniq Plug-in Hybrid 2020-22 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1490 , wheelbase = 2.7 , steerRatio = 13.73 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . HYBRID ,
flags = HyundaiFlags . HYBRID ,
)
)
KONA = HyundaiPlatformConfig (
KONA = HyundaiPlatformConfig (
" HYUNDAI KONA 2020 " ,
" HYUNDAI KONA 2020 " ,
[ HyundaiCarInfo ( " Hyundai Kona 2020 " , car_parts = CarParts . common ( [ CarHarness . hyundai_b ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Kona 2020 " , car_parts = CarParts . common ( [ CarHarness . hyundai_b ] ) ) ] ,
CarSpecs ( mass = 1275 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1275 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . CLUSTER_GEARS ,
flags = HyundaiFlags . CLUSTER_GEARS ,
)
)
KONA_EV = HyundaiPlatformConfig (
KONA_EV = HyundaiPlatformConfig (
" HYUNDAI KONA ELECTRIC 2019 " ,
" HYUNDAI KONA ELECTRIC 2019 " ,
[ HyundaiCarInfo ( " Hyundai Kona Electric 2018-21 " , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Kona Electric 2018-21 " , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ] ,
CarSpecs ( mass = 1685 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1685 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . EV ,
flags = HyundaiFlags . EV ,
)
)
KONA_EV_2022 = HyundaiPlatformConfig (
KONA_EV_2022 = HyundaiPlatformConfig (
" HYUNDAI KONA ELECTRIC 2022 " ,
" HYUNDAI KONA ELECTRIC 2022 " ,
[ HyundaiCarInfo ( " Hyundai Kona Electric 2022-23 " , car_parts = CarParts . common ( [ CarHarness . hyundai_o ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Kona Electric 2022-23 " , car_parts = CarParts . common ( [ CarHarness . hyundai_o ] ) ) ] ,
CarSpecs ( mass = 1743 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1743 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . CAMERA_SCC | HyundaiFlags . EV ,
flags = HyundaiFlags . CAMERA_SCC | HyundaiFlags . EV ,
)
)
KONA_EV_2ND_GEN = HyundaiCanFDPlatformConfig (
KONA_EV_2ND_GEN = HyundaiCanFDPlatformConfig (
" HYUNDAI KONA ELECTRIC 2ND GEN " ,
" HYUNDAI KONA ELECTRIC 2ND GEN " ,
[ HyundaiCarInfo ( " Hyundai Kona Electric (with HDA II, Korea only) 2023 " , video_link = " https://www.youtube.com/watch?v=U2fOCmcQ8hw " ,
[ HyundaiCarDocs ( " Hyundai Kona Electric (with HDA II, Korea only) 2023 " , video_link = " https://www.youtube.com/watch?v=U2fOCmcQ8hw " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_r ] ) ) ] ,
car_parts = CarParts . common ( [ CarHarness . hyundai_r ] ) ) ] ,
CarSpecs ( mass = 1740 , wheelbase = 2.66 , steerRatio = 13.6 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1740 , wheelbase = 2.66 , steerRatio = 13.6 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . EV | HyundaiFlags . CANFD_NO_RADAR_DISABLE ,
flags = HyundaiFlags . EV | HyundaiFlags . CANFD_NO_RADAR_DISABLE ,
)
)
KONA_HEV = HyundaiPlatformConfig (
KONA_HEV = HyundaiPlatformConfig (
" HYUNDAI KONA HYBRID 2020 " ,
" HYUNDAI KONA HYBRID 2020 " ,
[ HyundaiCarInfo ( " Hyundai Kona Hybrid 2020 " , car_parts = CarParts . common ( [ CarHarness . hyundai_i ] ) ) ] , # TODO: check packages,
[ HyundaiCarDocs ( " Hyundai Kona Hybrid 2020 " , car_parts = CarParts . common ( [ CarHarness . hyundai_i ] ) ) ] , # TODO: check packages,
CarSpecs ( mass = 1425 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1425 , wheelbase = 2.6 , steerRatio = 13.42 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . HYBRID ,
flags = HyundaiFlags . HYBRID ,
)
)
SANTA_FE = HyundaiPlatformConfig (
SANTA_FE = HyundaiPlatformConfig (
" HYUNDAI SANTA FE 2019 " ,
" HYUNDAI SANTA FE 2019 " ,
[ HyundaiCarInfo ( " Hyundai Santa Fe 2019-20 " , " All " , video_link = " https://youtu.be/bjDR0YjM__s " ,
[ HyundaiCarDocs ( " Hyundai Santa Fe 2019-20 " , " All " , video_link = " https://youtu.be/bjDR0YjM__s " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ] ,
car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ] ,
CarSpecs ( mass = 3982 * CV . LB_TO_KG , wheelbase = 2.766 , steerRatio = 16.55 , tireStiffnessFactor = 0.82 ) ,
CarSpecs ( mass = 3982 * CV . LB_TO_KG , wheelbase = 2.766 , steerRatio = 16.55 , tireStiffnessFactor = 0.82 ) ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 ,
)
)
SANTA_FE_2022 = HyundaiPlatformConfig (
SANTA_FE_2022 = HyundaiPlatformConfig (
" HYUNDAI SANTA FE 2022 " ,
" HYUNDAI SANTA FE 2022 " ,
[ HyundaiCarInfo ( " Hyundai Santa Fe 2021-23 " , " All " , video_link = " https://youtu.be/VnHzSTygTS4 " ,
[ HyundaiCarDocs ( " Hyundai Santa Fe 2021-23 " , " All " , video_link = " https://youtu.be/VnHzSTygTS4 " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ] ,
car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ] ,
SANTA_FE . specs ,
SANTA_FE . specs ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
)
)
SANTA_FE_HEV_2022 = HyundaiPlatformConfig (
SANTA_FE_HEV_2022 = HyundaiPlatformConfig (
" HYUNDAI SANTA FE HYBRID 2022 " ,
" HYUNDAI SANTA FE HYBRID 2022 " ,
[ HyundaiCarInfo ( " Hyundai Santa Fe Hybrid 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Santa Fe Hybrid 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ] ,
SANTA_FE . specs ,
SANTA_FE . specs ,
flags = HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
flags = HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
)
)
SANTA_FE_PHEV_2022 = HyundaiPlatformConfig (
SANTA_FE_PHEV_2022 = HyundaiPlatformConfig (
" HYUNDAI SANTA FE PlUG-IN HYBRID 2022 " ,
" HYUNDAI SANTA FE PlUG-IN HYBRID 2022 " ,
[ HyundaiCarInfo ( " Hyundai Santa Fe Plug-in Hybrid 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Santa Fe Plug-in Hybrid 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ] ,
SANTA_FE . specs ,
SANTA_FE . specs ,
flags = HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
flags = HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
)
)
SONATA = HyundaiPlatformConfig (
SONATA = HyundaiPlatformConfig (
" HYUNDAI SONATA 2020 " ,
" HYUNDAI SONATA 2020 " ,
[ HyundaiCarInfo ( " Hyundai Sonata 2020-23 " , " All " , video_link = " https://www.youtube.com/watch?v=ix63r9kE3Fw " ,
[ HyundaiCarDocs ( " Hyundai Sonata 2020-23 " , " All " , video_link = " https://www.youtube.com/watch?v=ix63r9kE3Fw " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
CarSpecs ( mass = 1513 , wheelbase = 2.84 , steerRatio = 13.27 * 1.15 , tireStiffnessFactor = 0.65 ) , # 15% higher at the center seems reasonable
CarSpecs ( mass = 1513 , wheelbase = 2.84 , steerRatio = 13.27 * 1.15 , tireStiffnessFactor = 0.65 ) , # 15% higher at the center seems reasonable
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 ,
)
)
SONATA_LF = HyundaiPlatformConfig (
SONATA_LF = HyundaiPlatformConfig (
" HYUNDAI SONATA 2019 " ,
" HYUNDAI SONATA 2019 " ,
[ HyundaiCarInfo ( " Hyundai Sonata 2018-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Sonata 2018-19 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ] ,
CarSpecs ( mass = 1536 , wheelbase = 2.804 , steerRatio = 13.27 * 1.15 ) , # 15% higher at the center seems reasonable
CarSpecs ( mass = 1536 , wheelbase = 2.804 , steerRatio = 13.27 * 1.15 ) , # 15% higher at the center seems reasonable
flags = HyundaiFlags . UNSUPPORTED_LONGITUDINAL | HyundaiFlags . TCU_GEARS ,
flags = HyundaiFlags . UNSUPPORTED_LONGITUDINAL | HyundaiFlags . TCU_GEARS ,
)
)
STARIA_4TH_GEN = HyundaiCanFDPlatformConfig (
STARIA_4TH_GEN = HyundaiCanFDPlatformConfig (
" HYUNDAI STARIA 4TH GEN " ,
" HYUNDAI STARIA 4TH GEN " ,
[ HyundaiCarInfo ( " Hyundai Staria 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Staria 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
CarSpecs ( mass = 2205 , wheelbase = 3.273 , steerRatio = 11.94 ) , # https://www.hyundai.com/content/dam/hyundai/au/en/models/staria-load/premium-pip-update-2023/spec-sheet/STARIA_Load_Spec-Table_March_2023_v3.1.pdf
CarSpecs ( mass = 2205 , wheelbase = 3.273 , steerRatio = 11.94 ) , # https://www.hyundai.com/content/dam/hyundai/au/en/models/staria-load/premium-pip-update-2023/spec-sheet/STARIA_Load_Spec-Table_March_2023_v3.1.pdf
)
)
TUCSON = HyundaiPlatformConfig (
TUCSON = HyundaiPlatformConfig (
" HYUNDAI TUCSON 2019 " ,
" HYUNDAI TUCSON 2019 " ,
[
[
HyundaiCarInfo ( " Hyundai Tucson 2021 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
HyundaiCarDocs ( " Hyundai Tucson 2021 " , min_enable_speed = 19 * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
HyundaiCarInfo ( " Hyundai Tucson Diesel 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
HyundaiCarDocs ( " Hyundai Tucson Diesel 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
] ,
] ,
CarSpecs ( mass = 3520 * CV . LB_TO_KG , wheelbase = 2.67 , steerRatio = 16.1 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 3520 * CV . LB_TO_KG , wheelbase = 2.67 , steerRatio = 16.1 , tireStiffnessFactor = 0.385 ) ,
flags = HyundaiFlags . TCU_GEARS ,
flags = HyundaiFlags . TCU_GEARS ,
@ -315,58 +315,58 @@ class CAR(Platforms):
PALISADE = HyundaiPlatformConfig (
PALISADE = HyundaiPlatformConfig (
" HYUNDAI PALISADE 2020 " ,
" HYUNDAI PALISADE 2020 " ,
[
[
HyundaiCarInfo ( " Hyundai Palisade 2020-22 " , " All " , video_link = " https://youtu.be/TAnDqjF4fDY?t=456 " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
HyundaiCarDocs ( " Hyundai Palisade 2020-22 " , " All " , video_link = " https://youtu.be/TAnDqjF4fDY?t=456 " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
HyundaiCarInfo ( " Kia Telluride 2020-22 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
HyundaiCarDocs ( " Kia Telluride 2020-22 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
] ,
] ,
CarSpecs ( mass = 1999 , wheelbase = 2.9 , steerRatio = 15.6 * 1.15 , tireStiffnessFactor = 0.63 ) ,
CarSpecs ( mass = 1999 , wheelbase = 2.9 , steerRatio = 15.6 * 1.15 , tireStiffnessFactor = 0.63 ) ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 ,
)
)
VELOSTER = HyundaiPlatformConfig (
VELOSTER = HyundaiPlatformConfig (
" HYUNDAI VELOSTER 2019 " ,
" HYUNDAI VELOSTER 2019 " ,
[ HyundaiCarInfo ( " Hyundai Veloster 2019-20 " , min_enable_speed = 5. * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Veloster 2019-20 " , min_enable_speed = 5. * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ] ,
CarSpecs ( mass = 2917 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 * 1.15 , tireStiffnessFactor = 0.5 ) ,
CarSpecs ( mass = 2917 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 * 1.15 , tireStiffnessFactor = 0.5 ) ,
flags = HyundaiFlags . LEGACY | HyundaiFlags . TCU_GEARS ,
flags = HyundaiFlags . LEGACY | HyundaiFlags . TCU_GEARS ,
)
)
SONATA_HYBRID = HyundaiPlatformConfig (
SONATA_HYBRID = HyundaiPlatformConfig (
" HYUNDAI SONATA HYBRID 2021 " ,
" HYUNDAI SONATA HYBRID 2021 " ,
[ HyundaiCarInfo ( " Hyundai Sonata Hybrid 2020-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Sonata Hybrid 2020-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
SONATA . specs ,
SONATA . specs ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
)
)
IONIQ_5 = HyundaiCanFDPlatformConfig (
IONIQ_5 = HyundaiCanFDPlatformConfig (
" HYUNDAI IONIQ 5 2022 " ,
" HYUNDAI IONIQ 5 2022 " ,
[
[
HyundaiCarInfo ( " Hyundai Ioniq 5 (Southeast Asia only) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_q ] ) ) ,
HyundaiCarDocs ( " Hyundai Ioniq 5 (Southeast Asia only) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_q ] ) ) ,
HyundaiCarInfo ( " Hyundai Ioniq 5 (without HDA II) 2022-23 " , " Highway Driving Assist " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ,
HyundaiCarDocs ( " Hyundai Ioniq 5 (without HDA II) 2022-23 " , " Highway Driving Assist " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ,
HyundaiCarInfo ( " Hyundai Ioniq 5 (with HDA II) 2022-23 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_q ] ) ) ,
HyundaiCarDocs ( " Hyundai Ioniq 5 (with HDA II) 2022-23 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_q ] ) ) ,
] ,
] ,
CarSpecs ( mass = 1948 , wheelbase = 2.97 , steerRatio = 14.26 , tireStiffnessFactor = 0.65 ) ,
CarSpecs ( mass = 1948 , wheelbase = 2.97 , steerRatio = 14.26 , tireStiffnessFactor = 0.65 ) ,
flags = HyundaiFlags . EV ,
flags = HyundaiFlags . EV ,
)
)
IONIQ_6 = HyundaiCanFDPlatformConfig (
IONIQ_6 = HyundaiCanFDPlatformConfig (
" HYUNDAI IONIQ 6 2023 " ,
" HYUNDAI IONIQ 6 2023 " ,
[ HyundaiCarInfo ( " Hyundai Ioniq 6 (with HDA II) 2023 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_p ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Ioniq 6 (with HDA II) 2023 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_p ] ) ) ] ,
IONIQ_5 . specs ,
IONIQ_5 . specs ,
flags = HyundaiFlags . EV | HyundaiFlags . CANFD_NO_RADAR_DISABLE ,
flags = HyundaiFlags . EV | HyundaiFlags . CANFD_NO_RADAR_DISABLE ,
)
)
TUCSON_4TH_GEN = HyundaiCanFDPlatformConfig (
TUCSON_4TH_GEN = HyundaiCanFDPlatformConfig (
" HYUNDAI TUCSON 4TH GEN " ,
" HYUNDAI TUCSON 4TH GEN " ,
[
[
HyundaiCarInfo ( " Hyundai Tucson 2022 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarDocs ( " Hyundai Tucson 2022 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarInfo ( " Hyundai Tucson 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarDocs ( " Hyundai Tucson 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarInfo ( " Hyundai Tucson Hybrid 2022-24 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarDocs ( " Hyundai Tucson Hybrid 2022-24 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
] ,
] ,
CarSpecs ( mass = 1630 , wheelbase = 2.756 , steerRatio = 16 , tireStiffnessFactor = 0.385 ) ,
CarSpecs ( mass = 1630 , wheelbase = 2.756 , steerRatio = 16 , tireStiffnessFactor = 0.385 ) ,
)
)
SANTA_CRUZ_1ST_GEN = HyundaiCanFDPlatformConfig (
SANTA_CRUZ_1ST_GEN = HyundaiCanFDPlatformConfig (
" HYUNDAI SANTA CRUZ 1ST GEN " ,
" HYUNDAI SANTA CRUZ 1ST GEN " ,
[ HyundaiCarInfo ( " Hyundai Santa Cruz 2022-24 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Santa Cruz 2022-24 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ] ,
# weight from Limited trim - the only supported trim, steering ratio according to Hyundai News https://www.hyundainews.com/assets/documents/original/48035-2022SantaCruzProductGuideSpecsv2081521.pdf
# weight from Limited trim - the only supported trim, steering ratio according to Hyundai News https://www.hyundainews.com/assets/documents/original/48035-2022SantaCruzProductGuideSpecsv2081521.pdf
CarSpecs ( mass = 1870 , wheelbase = 3 , steerRatio = 14.2 ) ,
CarSpecs ( mass = 1870 , wheelbase = 3 , steerRatio = 14.2 ) ,
)
)
CUSTIN_1ST_GEN = HyundaiPlatformConfig (
CUSTIN_1ST_GEN = HyundaiPlatformConfig (
" HYUNDAI CUSTIN 1ST GEN " ,
" HYUNDAI CUSTIN 1ST GEN " ,
[ HyundaiCarInfo ( " Hyundai Custin 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
[ HyundaiCarDocs ( " Hyundai Custin 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
CarSpecs ( mass = 1690 , wheelbase = 3.055 , steerRatio = 17 ) , # mass: from https://www.hyundai-motor.com.tw/clicktobuy/custin#spec_0, steerRatio: from learner
CarSpecs ( mass = 1690 , wheelbase = 3.055 , steerRatio = 17 ) , # mass: from https://www.hyundai-motor.com.tw/clicktobuy/custin#spec_0, steerRatio: from learner
flags = HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
)
)
@ -375,52 +375,52 @@ class CAR(Platforms):
KIA_FORTE = HyundaiPlatformConfig (
KIA_FORTE = HyundaiPlatformConfig (
" KIA FORTE E 2018 & GT 2021 " ,
" KIA FORTE E 2018 & GT 2021 " ,
[
[
HyundaiCarInfo ( " Kia Forte 2019-21 " , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ,
HyundaiCarDocs ( " Kia Forte 2019-21 " , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ,
HyundaiCarInfo ( " Kia Forte 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
HyundaiCarDocs ( " Kia Forte 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
] ,
] ,
CarSpecs ( mass = 2878 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 )
CarSpecs ( mass = 2878 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 )
)
)
KIA_K5_2021 = HyundaiPlatformConfig (
KIA_K5_2021 = HyundaiPlatformConfig (
" KIA K5 2021 " ,
" KIA K5 2021 " ,
[ HyundaiCarInfo ( " Kia K5 2021-24 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
[ HyundaiCarDocs ( " Kia K5 2021-24 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
CarSpecs ( mass = 3381 * CV . LB_TO_KG , wheelbase = 2.85 , steerRatio = 13.27 , tireStiffnessFactor = 0.5 ) , # 2021 Kia K5 Steering Ratio (all trims)
CarSpecs ( mass = 3381 * CV . LB_TO_KG , wheelbase = 2.85 , steerRatio = 13.27 , tireStiffnessFactor = 0.5 ) , # 2021 Kia K5 Steering Ratio (all trims)
flags = HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
)
)
KIA_K5_HEV_2020 = HyundaiPlatformConfig (
KIA_K5_HEV_2020 = HyundaiPlatformConfig (
" KIA K5 HYBRID 2020 " ,
" KIA K5 HYBRID 2020 " ,
[ HyundaiCarInfo ( " Kia K5 Hybrid 2020-22 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
[ HyundaiCarDocs ( " Kia K5 Hybrid 2020-22 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
KIA_K5_2021 . specs ,
KIA_K5_2021 . specs ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . CHECKSUM_CRC8 | HyundaiFlags . HYBRID ,
)
)
KIA_K8_HEV_1ST_GEN = HyundaiCanFDPlatformConfig (
KIA_K8_HEV_1ST_GEN = HyundaiCanFDPlatformConfig (
" KIA K8 HYBRID 1ST GEN " ,
" KIA K8 HYBRID 1ST GEN " ,
[ HyundaiCarInfo ( " Kia K8 Hybrid (with HDA II) 2023 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_q ] ) ) ] ,
[ HyundaiCarDocs ( " Kia K8 Hybrid (with HDA II) 2023 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_q ] ) ) ] ,
# mass: https://carprices.ae/brands/kia/2023/k8/1.6-turbo-hybrid, steerRatio: guesstimate from K5 platform
# mass: https://carprices.ae/brands/kia/2023/k8/1.6-turbo-hybrid, steerRatio: guesstimate from K5 platform
CarSpecs ( mass = 1630 , wheelbase = 2.895 , steerRatio = 13.27 )
CarSpecs ( mass = 1630 , wheelbase = 2.895 , steerRatio = 13.27 )
)
)
KIA_NIRO_EV = HyundaiPlatformConfig (
KIA_NIRO_EV = HyundaiPlatformConfig (
" KIA NIRO EV 2020 " ,
" KIA NIRO EV 2020 " ,
[
[
HyundaiCarInfo ( " Kia Niro EV 2019 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
HyundaiCarDocs ( " Kia Niro EV 2019 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
HyundaiCarInfo ( " Kia Niro EV 2020 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ,
HyundaiCarDocs ( " Kia Niro EV 2020 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ,
HyundaiCarInfo ( " Kia Niro EV 2021 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarDocs ( " Kia Niro EV 2021 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarInfo ( " Kia Niro EV 2022 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
HyundaiCarDocs ( " Kia Niro EV 2022 " , " All " , video_link = " https://www.youtube.com/watch?v=lT7zcG6ZpGo " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ,
] ,
] ,
CarSpecs ( mass = 3543 * CV . LB_TO_KG , wheelbase = 2.7 , steerRatio = 13.6 , tireStiffnessFactor = 0.385 ) , # average of all the cars
CarSpecs ( mass = 3543 * CV . LB_TO_KG , wheelbase = 2.7 , steerRatio = 13.6 , tireStiffnessFactor = 0.385 ) , # average of all the cars
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . EV ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . EV ,
)
)
KIA_NIRO_EV_2ND_GEN = HyundaiCanFDPlatformConfig (
KIA_NIRO_EV_2ND_GEN = HyundaiCanFDPlatformConfig (
" KIA NIRO EV 2ND GEN " ,
" KIA NIRO EV 2ND GEN " ,
[ HyundaiCarInfo ( " Kia Niro EV 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Niro EV 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
KIA_NIRO_EV . specs ,
KIA_NIRO_EV . specs ,
flags = HyundaiFlags . EV ,
flags = HyundaiFlags . EV ,
)
)
KIA_NIRO_PHEV = HyundaiPlatformConfig (
KIA_NIRO_PHEV = HyundaiPlatformConfig (
" KIA NIRO HYBRID 2019 " ,
" KIA NIRO HYBRID 2019 " ,
[
[
HyundaiCarInfo ( " Kia Niro Hybrid 2018 " , " All " , min_enable_speed = 10. * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarDocs ( " Kia Niro Hybrid 2018 " , " All " , min_enable_speed = 10. * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarInfo ( " Kia Niro Plug-in Hybrid 2018-19 " , " All " , min_enable_speed = 10. * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarDocs ( " Kia Niro Plug-in Hybrid 2018-19 " , " All " , min_enable_speed = 10. * CV . MPH_TO_MS , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ,
HyundaiCarInfo ( " Kia Niro Plug-in Hybrid 2020 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ,
HyundaiCarDocs ( " Kia Niro Plug-in Hybrid 2020 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ,
] ,
] ,
KIA_NIRO_EV . specs ,
KIA_NIRO_EV . specs ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . HYBRID | HyundaiFlags . UNSUPPORTED_LONGITUDINAL | HyundaiFlags . MIN_STEER_32_MPH ,
flags = HyundaiFlags . MANDO_RADAR | HyundaiFlags . HYBRID | HyundaiFlags . UNSUPPORTED_LONGITUDINAL | HyundaiFlags . MIN_STEER_32_MPH ,
@ -428,8 +428,8 @@ class CAR(Platforms):
KIA_NIRO_PHEV_2022 = HyundaiPlatformConfig (
KIA_NIRO_PHEV_2022 = HyundaiPlatformConfig (
" KIA NIRO PLUG-IN HYBRID 2022 " ,
" KIA NIRO PLUG-IN HYBRID 2022 " ,
[
[
HyundaiCarInfo ( " Kia Niro Plug-in Hybrid 2021 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ,
HyundaiCarDocs ( " Kia Niro Plug-in Hybrid 2021 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ,
HyundaiCarInfo ( " Kia Niro Plug-in Hybrid 2022 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ,
HyundaiCarDocs ( " Kia Niro Plug-in Hybrid 2022 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ,
] ,
] ,
KIA_NIRO_EV . specs ,
KIA_NIRO_EV . specs ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . MANDO_RADAR ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . MANDO_RADAR ,
@ -437,54 +437,54 @@ class CAR(Platforms):
KIA_NIRO_HEV_2021 = HyundaiPlatformConfig (
KIA_NIRO_HEV_2021 = HyundaiPlatformConfig (
" KIA NIRO HYBRID 2021 " ,
" KIA NIRO HYBRID 2021 " ,
[
[
HyundaiCarInfo ( " Kia Niro Hybrid 2021 " , car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ,
HyundaiCarDocs ( " Kia Niro Hybrid 2021 " , car_parts = CarParts . common ( [ CarHarness . hyundai_d ] ) ) ,
HyundaiCarInfo ( " Kia Niro Hybrid 2022 " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ,
HyundaiCarDocs ( " Kia Niro Hybrid 2022 " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ,
] ,
] ,
KIA_NIRO_EV . specs ,
KIA_NIRO_EV . specs ,
flags = HyundaiFlags . HYBRID ,
flags = HyundaiFlags . HYBRID ,
)
)
KIA_NIRO_HEV_2ND_GEN = HyundaiCanFDPlatformConfig (
KIA_NIRO_HEV_2ND_GEN = HyundaiCanFDPlatformConfig (
" KIA NIRO HYBRID 2ND GEN " ,
" KIA NIRO HYBRID 2ND GEN " ,
[ HyundaiCarInfo ( " Kia Niro Hybrid 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Niro Hybrid 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
KIA_NIRO_EV . specs ,
KIA_NIRO_EV . specs ,
)
)
KIA_OPTIMA_G4 = HyundaiPlatformConfig (
KIA_OPTIMA_G4 = HyundaiPlatformConfig (
" KIA OPTIMA 4TH GEN " ,
" KIA OPTIMA 4TH GEN " ,
[ HyundaiCarInfo ( " Kia Optima 2017 " , " Advanced Smart Cruise Control " ,
[ HyundaiCarDocs ( " Kia Optima 2017 " , " Advanced Smart Cruise Control " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_b ] ) ) ] , # TODO: may support 2016, 2018
car_parts = CarParts . common ( [ CarHarness . hyundai_b ] ) ) ] , # TODO: may support 2016, 2018
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
flags = HyundaiFlags . LEGACY | HyundaiFlags . TCU_GEARS | HyundaiFlags . MIN_STEER_32_MPH ,
flags = HyundaiFlags . LEGACY | HyundaiFlags . TCU_GEARS | HyundaiFlags . MIN_STEER_32_MPH ,
)
)
KIA_OPTIMA_G4_FL = HyundaiPlatformConfig (
KIA_OPTIMA_G4_FL = HyundaiPlatformConfig (
" KIA OPTIMA 4TH GEN FACELIFT " ,
" KIA OPTIMA 4TH GEN FACELIFT " ,
[ HyundaiCarInfo ( " Kia Optima 2019-20 " , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Optima 2019-20 " , car_parts = CarParts . common ( [ CarHarness . hyundai_g ] ) ) ] ,
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
flags = HyundaiFlags . UNSUPPORTED_LONGITUDINAL | HyundaiFlags . TCU_GEARS ,
flags = HyundaiFlags . UNSUPPORTED_LONGITUDINAL | HyundaiFlags . TCU_GEARS ,
)
)
# TODO: may support adjacent years. may have a non-zero minimum steering speed
# TODO: may support adjacent years. may have a non-zero minimum steering speed
KIA_OPTIMA_H = HyundaiPlatformConfig (
KIA_OPTIMA_H = HyundaiPlatformConfig (
" KIA OPTIMA HYBRID 2017 & SPORTS 2019 " ,
" KIA OPTIMA HYBRID 2017 & SPORTS 2019 " ,
[ HyundaiCarInfo ( " Kia Optima Hybrid 2017 " , " Advanced Smart Cruise Control " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Optima Hybrid 2017 " , " Advanced Smart Cruise Control " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . LEGACY ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . LEGACY ,
)
)
KIA_OPTIMA_H_G4_FL = HyundaiPlatformConfig (
KIA_OPTIMA_H_G4_FL = HyundaiPlatformConfig (
" KIA OPTIMA HYBRID 4TH GEN FACELIFT " ,
" KIA OPTIMA HYBRID 4TH GEN FACELIFT " ,
[ HyundaiCarInfo ( " Kia Optima Hybrid 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Optima Hybrid 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
CarSpecs ( mass = 3558 * CV . LB_TO_KG , wheelbase = 2.8 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . UNSUPPORTED_LONGITUDINAL ,
flags = HyundaiFlags . HYBRID | HyundaiFlags . UNSUPPORTED_LONGITUDINAL ,
)
)
KIA_SELTOS = HyundaiPlatformConfig (
KIA_SELTOS = HyundaiPlatformConfig (
" KIA SELTOS 2021 " ,
" KIA SELTOS 2021 " ,
[ HyundaiCarInfo ( " Kia Seltos 2021 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Seltos 2021 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ] ,
CarSpecs ( mass = 1337 , wheelbase = 2.63 , steerRatio = 14.56 ) ,
CarSpecs ( mass = 1337 , wheelbase = 2.63 , steerRatio = 14.56 ) ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
flags = HyundaiFlags . CHECKSUM_CRC8 ,
)
)
KIA_SPORTAGE_5TH_GEN = HyundaiCanFDPlatformConfig (
KIA_SPORTAGE_5TH_GEN = HyundaiCanFDPlatformConfig (
" KIA SPORTAGE 5TH GEN " ,
" KIA SPORTAGE 5TH GEN " ,
[
[
HyundaiCarInfo ( " Kia Sportage 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarDocs ( " Kia Sportage 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarInfo ( " Kia Sportage Hybrid 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
HyundaiCarDocs ( " Kia Sportage Hybrid 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_n ] ) ) ,
] ,
] ,
# weight from SX and above trims, average of FWD and AWD version, steering ratio according to Kia News https://www.kiamedia.com/us/en/models/sportage/2023/specifications
# weight from SX and above trims, average of FWD and AWD version, steering ratio according to Kia News https://www.kiamedia.com/us/en/models/sportage/2023/specifications
CarSpecs ( mass = 1725 , wheelbase = 2.756 , steerRatio = 13.6 ) ,
CarSpecs ( mass = 1725 , wheelbase = 2.756 , steerRatio = 13.6 ) ,
@ -492,51 +492,51 @@ class CAR(Platforms):
KIA_SORENTO = HyundaiPlatformConfig (
KIA_SORENTO = HyundaiPlatformConfig (
" KIA SORENTO GT LINE 2018 " ,
" KIA SORENTO GT LINE 2018 " ,
[
[
HyundaiCarInfo ( " Kia Sorento 2018 " , " Advanced Smart Cruise Control & LKAS " , video_link = " https://www.youtube.com/watch?v=Fkh3s6WHJz8 " ,
HyundaiCarDocs ( " Kia Sorento 2018 " , " Advanced Smart Cruise Control & LKAS " , video_link = " https://www.youtube.com/watch?v=Fkh3s6WHJz8 " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
HyundaiCarInfo ( " Kia Sorento 2019 " , video_link = " https://www.youtube.com/watch?v=Fkh3s6WHJz8 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
HyundaiCarDocs ( " Kia Sorento 2019 " , video_link = " https://www.youtube.com/watch?v=Fkh3s6WHJz8 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ,
] ,
] ,
CarSpecs ( mass = 1985 , wheelbase = 2.78 , steerRatio = 14.4 * 1.1 ) , # 10% higher at the center seems reasonable
CarSpecs ( mass = 1985 , wheelbase = 2.78 , steerRatio = 14.4 * 1.1 ) , # 10% higher at the center seems reasonable
flags = HyundaiFlags . CHECKSUM_6B | HyundaiFlags . UNSUPPORTED_LONGITUDINAL ,
flags = HyundaiFlags . CHECKSUM_6B | HyundaiFlags . UNSUPPORTED_LONGITUDINAL ,
)
)
KIA_SORENTO_4TH_GEN = HyundaiCanFDPlatformConfig (
KIA_SORENTO_4TH_GEN = HyundaiCanFDPlatformConfig (
" KIA SORENTO 4TH GEN " ,
" KIA SORENTO 4TH GEN " ,
[ HyundaiCarInfo ( " Kia Sorento 2021-23 " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Sorento 2021-23 " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
CarSpecs ( mass = 3957 * CV . LB_TO_KG , wheelbase = 2.81 , steerRatio = 13.5 ) , # average of the platforms
CarSpecs ( mass = 3957 * CV . LB_TO_KG , wheelbase = 2.81 , steerRatio = 13.5 ) , # average of the platforms
flags = HyundaiFlags . RADAR_SCC ,
flags = HyundaiFlags . RADAR_SCC ,
)
)
KIA_SORENTO_HEV_4TH_GEN = HyundaiCanFDPlatformConfig (
KIA_SORENTO_HEV_4TH_GEN = HyundaiCanFDPlatformConfig (
" KIA SORENTO HYBRID 4TH GEN " ,
" KIA SORENTO HYBRID 4TH GEN " ,
[
[
HyundaiCarInfo ( " Kia Sorento Hybrid 2021-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
HyundaiCarDocs ( " Kia Sorento Hybrid 2021-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
HyundaiCarInfo ( " Kia Sorento Plug-in Hybrid 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
HyundaiCarDocs ( " Kia Sorento Plug-in Hybrid 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
] ,
] ,
CarSpecs ( mass = 4395 * CV . LB_TO_KG , wheelbase = 2.81 , steerRatio = 13.5 ) , # average of the platforms
CarSpecs ( mass = 4395 * CV . LB_TO_KG , wheelbase = 2.81 , steerRatio = 13.5 ) , # average of the platforms
flags = HyundaiFlags . RADAR_SCC ,
flags = HyundaiFlags . RADAR_SCC ,
)
)
KIA_STINGER = HyundaiPlatformConfig (
KIA_STINGER = HyundaiPlatformConfig (
" KIA STINGER GT2 2018 " ,
" KIA STINGER GT2 2018 " ,
[ HyundaiCarInfo ( " Kia Stinger 2018-20 " , video_link = " https://www.youtube.com/watch?v=MJ94qoofYw0 " ,
[ HyundaiCarDocs ( " Kia Stinger 2018-20 " , video_link = " https://www.youtube.com/watch?v=MJ94qoofYw0 " ,
car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
CarSpecs ( mass = 1825 , wheelbase = 2.78 , steerRatio = 14.4 * 1.15 ) # 15% higher at the center seems reasonable
CarSpecs ( mass = 1825 , wheelbase = 2.78 , steerRatio = 14.4 * 1.15 ) # 15% higher at the center seems reasonable
)
)
KIA_STINGER_2022 = HyundaiPlatformConfig (
KIA_STINGER_2022 = HyundaiPlatformConfig (
" KIA STINGER 2022 " ,
" KIA STINGER 2022 " ,
[ HyundaiCarInfo ( " Kia Stinger 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Stinger 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ] ,
KIA_STINGER . specs ,
KIA_STINGER . specs ,
)
)
KIA_CEED = HyundaiPlatformConfig (
KIA_CEED = HyundaiPlatformConfig (
" KIA CEED INTRO ED 2019 " ,
" KIA CEED INTRO ED 2019 " ,
[ HyundaiCarInfo ( " Kia Ceed 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ] ,
[ HyundaiCarDocs ( " Kia Ceed 2019 " , car_parts = CarParts . common ( [ CarHarness . hyundai_e ] ) ) ] ,
CarSpecs ( mass = 1450 , wheelbase = 2.65 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
CarSpecs ( mass = 1450 , wheelbase = 2.65 , steerRatio = 13.75 , tireStiffnessFactor = 0.5 ) ,
flags = HyundaiFlags . LEGACY ,
flags = HyundaiFlags . LEGACY ,
)
)
KIA_EV6 = HyundaiCanFDPlatformConfig (
KIA_EV6 = HyundaiCanFDPlatformConfig (
" KIA EV6 2022 " ,
" KIA EV6 2022 " ,
[
[
HyundaiCarInfo ( " Kia EV6 (Southeast Asia only) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_p ] ) ) ,
HyundaiCarDocs ( " Kia EV6 (Southeast Asia only) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_p ] ) ) ,
HyundaiCarInfo ( " Kia EV6 (without HDA II) 2022-23 " , " Highway Driving Assist " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
HyundaiCarDocs ( " Kia EV6 (without HDA II) 2022-23 " , " Highway Driving Assist " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
HyundaiCarInfo ( " Kia EV6 (with HDA II) 2022-23 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_p ] ) )
HyundaiCarDocs ( " Kia EV6 (with HDA II) 2022-23 " , " Highway Driving Assist II " , car_parts = CarParts . common ( [ CarHarness . hyundai_p ] ) )
] ,
] ,
CarSpecs ( mass = 2055 , wheelbase = 2.9 , steerRatio = 16 , tireStiffnessFactor = 0.65 ) ,
CarSpecs ( mass = 2055 , wheelbase = 2.9 , steerRatio = 16 , tireStiffnessFactor = 0.65 ) ,
flags = HyundaiFlags . EV ,
flags = HyundaiFlags . EV ,
@ -544,8 +544,8 @@ class CAR(Platforms):
KIA_CARNIVAL_4TH_GEN = HyundaiCanFDPlatformConfig (
KIA_CARNIVAL_4TH_GEN = HyundaiCanFDPlatformConfig (
" KIA CARNIVAL 4TH GEN " ,
" KIA CARNIVAL 4TH GEN " ,
[
[
HyundaiCarInfo ( " Kia Carnival 2022-24 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
HyundaiCarDocs ( " Kia Carnival 2022-24 " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
HyundaiCarInfo ( " Kia Carnival (China only) 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) )
HyundaiCarDocs ( " Kia Carnival (China only) 2023 " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) )
] ,
] ,
CarSpecs ( mass = 2087 , wheelbase = 3.09 , steerRatio = 14.23 ) ,
CarSpecs ( mass = 2087 , wheelbase = 3.09 , steerRatio = 14.23 ) ,
flags = HyundaiFlags . RADAR_SCC ,
flags = HyundaiFlags . RADAR_SCC ,
@ -555,47 +555,47 @@ class CAR(Platforms):
GENESIS_GV60_EV_1ST_GEN = HyundaiCanFDPlatformConfig (
GENESIS_GV60_EV_1ST_GEN = HyundaiCanFDPlatformConfig (
" GENESIS GV60 ELECTRIC 1ST GEN " ,
" GENESIS GV60 ELECTRIC 1ST GEN " ,
[
[
HyundaiCarInfo ( " Genesis GV60 (Advanced Trim) 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
HyundaiCarDocs ( " Genesis GV60 (Advanced Trim) 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_a ] ) ) ,
HyundaiCarInfo ( " Genesis GV60 (Performance Trim) 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ,
HyundaiCarDocs ( " Genesis GV60 (Performance Trim) 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_k ] ) ) ,
] ,
] ,
CarSpecs ( mass = 2205 , wheelbase = 2.9 , steerRatio = 12.6 ) , # steerRatio: https://www.motor1.com/reviews/586376/2023-genesis-gv60-first-drive/#:~:text=Relative%20to%20the%20related%20Ioniq,5%2FEV6%27s%2014.3%3A1.
CarSpecs ( mass = 2205 , wheelbase = 2.9 , steerRatio = 12.6 ) , # steerRatio: https://www.motor1.com/reviews/586376/2023-genesis-gv60-first-drive/#:~:text=Relative%20to%20the%20related%20Ioniq,5%2FEV6%27s%2014.3%3A1.
flags = HyundaiFlags . EV ,
flags = HyundaiFlags . EV ,
)
)
GENESIS_G70 = HyundaiPlatformConfig (
GENESIS_G70 = HyundaiPlatformConfig (
" GENESIS G70 2018 " ,
" GENESIS G70 2018 " ,
[ HyundaiCarInfo ( " Genesis G70 2018-19 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ] ,
[ HyundaiCarDocs ( " Genesis G70 2018-19 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ] ,
CarSpecs ( mass = 1640 , wheelbase = 2.84 , steerRatio = 13.56 ) ,
CarSpecs ( mass = 1640 , wheelbase = 2.84 , steerRatio = 13.56 ) ,
flags = HyundaiFlags . LEGACY ,
flags = HyundaiFlags . LEGACY ,
)
)
GENESIS_G70_2020 = HyundaiPlatformConfig (
GENESIS_G70_2020 = HyundaiPlatformConfig (
" GENESIS G70 2020 " ,
" GENESIS G70 2020 " ,
[ HyundaiCarInfo ( " Genesis G70 2020-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ] ,
[ HyundaiCarDocs ( " Genesis G70 2020-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_f ] ) ) ] ,
CarSpecs ( mass = 3673 * CV . LB_TO_KG , wheelbase = 2.83 , steerRatio = 12.9 ) ,
CarSpecs ( mass = 3673 * CV . LB_TO_KG , wheelbase = 2.83 , steerRatio = 12.9 ) ,
flags = HyundaiFlags . MANDO_RADAR ,
flags = HyundaiFlags . MANDO_RADAR ,
)
)
GENESIS_GV70_1ST_GEN = HyundaiCanFDPlatformConfig (
GENESIS_GV70_1ST_GEN = HyundaiCanFDPlatformConfig (
" GENESIS GV70 1ST GEN " ,
" GENESIS GV70 1ST GEN " ,
[
[
HyundaiCarInfo ( " Genesis GV70 (2.5T Trim) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
HyundaiCarDocs ( " Genesis GV70 (2.5T Trim) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_l ] ) ) ,
HyundaiCarInfo ( " Genesis GV70 (3.5T Trim) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_m ] ) ) ,
HyundaiCarDocs ( " Genesis GV70 (3.5T Trim) 2022-23 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_m ] ) ) ,
] ,
] ,
CarSpecs ( mass = 1950 , wheelbase = 2.87 , steerRatio = 14.6 ) ,
CarSpecs ( mass = 1950 , wheelbase = 2.87 , steerRatio = 14.6 ) ,
flags = HyundaiFlags . RADAR_SCC ,
flags = HyundaiFlags . RADAR_SCC ,
)
)
GENESIS_G80 = HyundaiPlatformConfig (
GENESIS_G80 = HyundaiPlatformConfig (
" GENESIS G80 2017 " ,
" GENESIS G80 2017 " ,
[ HyundaiCarInfo ( " Genesis G80 2018-19 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
[ HyundaiCarDocs ( " Genesis G80 2018-19 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_h ] ) ) ] ,
CarSpecs ( mass = 2060 , wheelbase = 3.01 , steerRatio = 16.5 ) ,
CarSpecs ( mass = 2060 , wheelbase = 3.01 , steerRatio = 16.5 ) ,
flags = HyundaiFlags . LEGACY ,
flags = HyundaiFlags . LEGACY ,
)
)
GENESIS_G90 = HyundaiPlatformConfig (
GENESIS_G90 = HyundaiPlatformConfig (
" GENESIS G90 2017 " ,
" GENESIS G90 2017 " ,
[ HyundaiCarInfo ( " Genesis G90 2017-18 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
[ HyundaiCarDocs ( " Genesis G90 2017-18 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_c ] ) ) ] ,
CarSpecs ( mass = 2200 , wheelbase = 3.15 , steerRatio = 12.069 ) ,
CarSpecs ( mass = 2200 , wheelbase = 3.15 , steerRatio = 12.069 ) ,
)
)
GENESIS_GV80 = HyundaiCanFDPlatformConfig (
GENESIS_GV80 = HyundaiCanFDPlatformConfig (
" GENESIS GV80 2023 " ,
" GENESIS GV80 2023 " ,
[ HyundaiCarInfo ( " Genesis GV80 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_m ] ) ) ] ,
[ HyundaiCarDocs ( " Genesis GV80 2023 " , " All " , car_parts = CarParts . common ( [ CarHarness . hyundai_m ] ) ) ] ,
CarSpecs ( mass = 2258 , wheelbase = 2.95 , steerRatio = 14.14 ) ,
CarSpecs ( mass = 2258 , wheelbase = 2.95 , steerRatio = 14.14 ) ,
flags = HyundaiFlags . RADAR_SCC ,
flags = HyundaiFlags . RADAR_SCC ,
)
)