Skip to content

Conversation

@jchristman75
Copy link

@jchristman75 jchristman75 commented Jan 5, 2026

Description

Enable the torque bar for curvature based cars; starting with Ford.

@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
@jchristman75 jchristman75 marked this pull request as draft January 10, 2026 19:53
@jchristman75 jchristman75 marked this pull request as ready for review January 14, 2026 17:43
Copy link
Collaborator

@blue-genie blue-genie left a comment

Choose a reason for hiding this comment

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

I provided a few comments, none of them are really critical just for future proofing and maintain compatibility for other cars.

Since I don't really know the full scope of this project I will let @alan-polk comment if these comments are applicable for this PR or not.


if ui_state.sm['controlsState'].lateralControlState.which() != 'angleState':
self._torque_bar.render(rect)
self._torque_bar.render(rect)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's safer to keep the if statement but add a an or for fords, or only if lateralUncertainty is available or something that would ensure that you don't break the functionality for other cars. We have users with Fords and Hyundai.

@jchristman75
Copy link
Author

jchristman75 commented Jan 15, 2026

Thank you so much for taking the time to review my PR. This type of insight, especially in the nuance of Cereal are very helpful. I will repair these deficiencies, hopefully later tonight. Thank you,

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.

3 participants