From 74481be4ff5a411aa07c1052d27fb87beab7e337 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Wed, 31 Jul 2024 00:02:04 -0400 Subject: [PATCH] same rate up/down --- selfdrive/car/hyundai/carcontroller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index 7c7dfbb1c9..9653b5b537 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -539,8 +539,8 @@ class CarController(CarControllerBase): def make_accel(self, actuators): long_control = actuators.longControlState is_ice = not self.CP.flags & (HyundaiFlags.HYBRID | HyundaiFlags.EV) - rate_up = 0.1 * 1 if is_ice else self.jerk_u - rate_down = 0.1 * 1 if is_ice else self.jerk_l + rate_up = 0.1 + rate_down = 0.1 if long_control == LongCtrlState.off: self.accel_raw, self.accel_val = 0, 0 else: