wrong logic

This commit is contained in:
Jason Wen
2024-08-01 06:41:26 -04:00
parent f79ed8f06b
commit 9ad059f05e
+2 -2
View File
@@ -499,10 +499,10 @@ class CarController(CarControllerBase):
a_error = accel - CS.out.aEgo
jerk = jerk + (a_error * 2.0)
if self.hkg_custom_long_tuning:
if not self.hkg_custom_long_tuning:
self.jerk_u = 3.0 if actuators.longControlState == LongCtrlState.pid else 1.0
self.jerk_l = 5.0
if self.CP.carFingerprint in CANFD_CAR or self.CP.carFingerprint == CAR.HYUNDAI_KONA_EV_2022:
elif self.CP.carFingerprint in CANFD_CAR or self.CP.carFingerprint == CAR.HYUNDAI_KONA_EV_2022:
startingJerk = 0.5
jerkLimit = 5.0
self.jerk_count += DT_CTRL