diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index f47c1029d19d1d..a059e16d23e1f4 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -44,7 +44,7 @@ def get_can_parser(CP): ("CF_Clu_AmpInfo", "CLU11", 0), ("CF_Clu_AliveCnt1", "CLU11", 0), - ("CF_Clu_InhibitD", "CLU15", 0), + ("CF_Clu_LanguageInfo", "CLU15", 0), ("CF_Clu_InhibitP", "CLU15", 0), ("CF_Clu_InhibitN", "CLU15", 0), ("CF_Clu_InhibitR", "CLU15", 0), @@ -257,8 +257,8 @@ def update(self, cp, cp_cam): else: self.gear_shifter = "unknown" - # Gear Selection via Cluster - For those Kia/Hyundai which are not fully discovered, we can use the Cluster Indicator for Gear Selection, as this seems to be standard over all cars, but is not the preferred method. - if cp.vl["CLU15"]["CF_Clu_InhibitD"] == 1: + # If you speak English you can drive + if cp.vl["CLU15"]["CF_Clu_LanguageInfo"] == 2: self.gear_shifter_cluster = "drive" elif cp.vl["CLU15"]["CF_Clu_InhibitN"] == 1: self.gear_shifter_cluster = "neutral"