-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Honda - add pitch compensation to Nidec #2772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Putting this on hold as test route is not obviously better. Need to move from speed control to gas pedal control to make impact more visible, staying as draft until a PR for pedal control is working. |
I had tried to add pitch compensation to Toyota when trying to understand and undo the internal PCM compensations it does to our acceleration request, but was never able to get it working reliably in all scenarios. Highpassing (~derivative) the pitch, and then allowing the integral controller to wind up after pitch changes worked much more reliably and more responsively. It removed any steady state error if the pitch estimation was wrong, or if the factor to go from pitch -> accel (gas/brake in your case) is totally unknown. Unclear if it would benefit you here, but you can copy what I did for Toyota and report back: opendbc/opendbc/car/toyota/carcontroller.py Lines 231 to 234 in fce60b4
|
Honda Nidecs benefit from pitch compensation for gas and brake. Have been testing this for a month on an openpilot fork.
Adding this change in a similar manner as the Bosch change in earlier versions of #2488
Todo: