From 2ffc2fa8ace961da13d385db8d2b56108b4a668c Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Mon, 5 Feb 2024 13:06:38 +0800 Subject: [PATCH] set tune directly --- selfdrive/car/interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/interfaces.py b/selfdrive/car/interfaces.py index 3a9faccc2..d8f863b2e 100644 --- a/selfdrive/car/interfaces.py +++ b/selfdrive/car/interfaces.py @@ -108,9 +108,9 @@ def get_params(cls, candidate: str, fingerprint: Dict[int, Dict[int, int]], car_ # rick - override lat controller dp_lat_controller = int(Params().get("dp_lat_controller")) if dp_lat_controller == 1: # indi - ret = cls.configure_indi_tune(ret.lateralTuning) + cls.configure_indi_tune(ret.lateralTuning) elif dp_lat_controller == 2: # lqr - ret = cls.configure_lqr_tune(ret.lateralTuning) + cls.configure_lqr_tune(ret.lateralTuning) # Vehicle mass is published curb weight plus assumed payload such as a human driver; notCars have no assumed payload if not ret.notCar: