Update carcontroller.py

This commit is contained in:
firestar5683
2026-04-01 23:09:06 -05:00
parent 04bc9d275d
commit a1f24c91e4
+1 -1
View File
@@ -184,7 +184,7 @@ class CarController(CarControllerBase):
else:
small_cmd_scale = np.interp(abs(accel), [0.0, 0.35, 0.8, 1.5, 2.5], [0.44, 0.54, 0.70, 0.89, 1.0])
accel_cmd = accel * small_cmd_scale
if accel < -2.0:
if (not press_regen_paddle) and accel < -2.0:
accel_cmd *= np.interp(abs(accel), [2.0, 2.5, 3.0], [1.0, 1.03, 1.06])
raw_pedal_gas = float(np.clip(pedaloffset + accel_cmd * accel_gain * accel_term_scale, 0.0, 1.0))