-
Notifications
You must be signed in to change notification settings - Fork 679
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
fix(mpc): optimization failure due to steer limit #3044
fix(mpc): optimization failure due to steer limit #3044
Conversation
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
m_raw_steer_cmd_pprev = current_steer.steering_tire_angle; | ||
// Consider limit. The prev value larger than limiation brakes the optimization constraint and | ||
// resluts in optimization failure. | ||
float steer_lim_f = static_cast<float>(m_steer_lim); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const police 👮♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
d49e079
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #3044 +/- ##
==========================================
- Coverage 11.93% 11.93% -0.01%
==========================================
Files 1321 1321
Lines 91991 91992 +1
Branches 24566 24568 +2
==========================================
Hits 10978 10978
- Misses 69654 69655 +1
Partials 11359 11359
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Description
MPC optimization sometimes failed when it receives a steering status larger than
mpc_steering_limit
. It is due to the break of the optimization constraint.This PR fixes the
prev_steering_value
considering the steering limit.Related links
TIERIV COMPANY INTERNAL LINK: https://tier4.atlassian.net/browse/T4PB-26780
Tests performed
Notes for reviewers
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.