This commit is contained in:
discountchubbs
2025-03-20 19:25:58 -07:00
parent 1eddc75541
commit 9b52532342
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ class Car:
# mads
set_alternative_experience(self.CP, self.params)
set_car_specific_params(self.CP, self.CP_SP, self.params)
set_hyundai_long_tune_flag(self.CP_SP)
set_hyundai_long_tune_flag(self.CP)
# Dynamic Experimental Control
self.dynamic_experimental_control = self.params.get_bool("DynamicExperimentalControl")
@@ -10,9 +10,9 @@ class HyundaiLongTuneParams:
return val in [b"1", b"2"]
def set_hyundai_long_tune_flag(CP_SP: structs.CarParamsSP):
def set_hyundai_long_tune_flag(CP: structs.CarParams):
params = Params()
if HyundaiLongTuneParams.param(params, "HyundaiLongTune"):
CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING.value
CP.flags |= HyundaiFlagsSP.HKGLONGTUNING.value
if params.get_bool("HyundaiSmootherBraking"):
CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING_BRAKING.value
CP.flags |= HyundaiFlagsSP.HKGLONGTUNING_BRAKING.value