Skip to content

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Jul 21, 2025

See example of oscillation due to torque controller/friction: commaai/opendbc#2506

LatControlTorque was made to error-correct in torque space long ago (#27696) when introducing the Bolt ff model, as an error of x lateral accel near wheel center wasn't the same as if we were near torque saturation due to the Bolt's non-linearity. It seems more than appropriate to do the same for friction compensation. A delta of x lateral accel near 0 behaves differently than when near saturation all the same.

This doesn't fully fix the case here commaai/opendbc#2506 due to the insane error, but drastically improves smoothness while still maintaining the friction. We may want to lower it anyway.

This is that route replayed with this PR:

image

@sshane sshane changed the title Fix nl friction torque controller: fix non-linear friction Jul 22, 2025
@sshane
Copy link
Contributor Author

sshane commented Jul 27, 2025

Superseded by #35790

@sshane sshane closed this Jul 27, 2025
@sshane sshane deleted the fix-nl-friction branch July 27, 2025 06:43
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