Skip to content

Conversation

@jchristman75
Copy link

@jchristman75 jchristman75 commented Jan 5, 2026

Description

Enable the torque bar for curvature based cars.

Each car implementation must provide the parameter "curvature_limit" to activate the torque bar.

Example, for Ford, in carcontroller.py / __init__, set curvature_limit to Ford's limit of 0.02

  def __init__(self, dbc_names, CP, CP_SP):
    CarControllerBase.__init__(self, dbc_names, CP, CP_SP)

    self.params = Params()
    self.params.put("curvature_limit", float(0.02))  # Ford system max curvature

@jchristman75 jchristman75 changed the title curve torque test curve/torque bar for configured curature based cars Jan 6, 2026
@jchristman75 jchristman75 marked this pull request as ready for review January 6, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant