Skip to content

Bronco special - #2430

Merged
haraschax merged 7 commits into
masterfrom
bronco_special
Jul 3, 2025
Merged

Bronco special#2430
haraschax merged 7 commits into
masterfrom
bronco_special

Conversation

@haraschax

Copy link
Copy Markdown
Contributor

Validation

  • Dongle ID:
  • Route:

@github-actions github-actions Bot added car related to opendbc/car/ ford labels Jul 2, 2025
@haraschax
haraschax merged commit 33842a0 into master Jul 3, 2025
5 checks passed
@haraschax
haraschax deleted the bronco_special branch July 3, 2025 04:06
Comment on lines +18 to +37
def anti_overshoot(new_curvature, last_curvature, v_ego):
diff = 0.05
tau = 5 # 5s smooths over the overshoot
dt = DT_CTRL * CarControllerParams.STEER_STEP
alpha = 1 - np.exp(-dt/tau)

lataccel = new_curvature * (v_ego ** 2)
last_lataccel = last_curvature * (v_ego ** 2)

if lataccel > last_lataccel + diff:
last_lataccel = lataccel - diff
elif lataccel < last_lataccel - diff:
last_lataccel = lataccel + diff
last_lataccel = alpha * lataccel + (1 - alpha) * last_lataccel

output_curvature = last_lataccel / (v_ego ** 2 + 1e-6)

return np.interp(v_ego, [5, 10], [new_curvature, output_curvature])


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorrect indentation (2 spaces)

last_lataccel = lataccel + diff
last_lataccel = alpha * lataccel + (1 - alpha) * last_lataccel

output_curvature = last_lataccel / (v_ego ** 2 + 1e-6)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use max below this in this file. better to keep things consistent:

MAX_LATERAL_ACCEL / (max(v_ego_raw, 1) ** 2)

ssysm pushed a commit to MOTIF-lab/opendbc that referenced this pull request Jul 9, 2025
* Bronco special

* ignore low speed

* fixes

* less smooth

* typo

* better names

* typo
FeistyFinn pushed a commit to FeistyFinn/opendbc that referenced this pull request Jun 25, 2026
* Bronco special

* ignore low speed

* fixes

* less smooth

* typo

* better names

* typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

car related to opendbc/car/ ford

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants