Skip to content

Commit 00c4a5a

Browse files
committed
Bronco smoother: fix hysteresis
1 parent e12e783 commit 00c4a5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opendbc/car/ford/carcontroller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def anti_overshoot(apply_curvature, apply_curvature_last, v_ego):
2323

2424
lataccel = apply_curvature * (v_ego ** 2)
2525
last_lataccel = apply_curvature_last * (v_ego ** 2)
26-
last_lataccel = apply_hysteresis(last_lataccel, lataccel, diff)
26+
last_lataccel = apply_hysteresis(lataccel, last_lataccel, diff)
2727
last_lataccel = alpha * lataccel + (1 - alpha) * last_lataccel
2828

2929
output_curvature = last_lataccel / (max(v_ego, 1) ** 2)

0 commit comments

Comments
 (0)