mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-23 06:43:47 +08:00
CP
This commit is contained in:
+1
-1
Submodule opendbc_repo updated: def354acdc...ce029095e5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user