-
Notifications
You must be signed in to change notification settings - Fork 682
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
feat(longitudinal_controller): skip integral in manual mode #2619
feat(longitudinal_controller): skip integral in manual mode #2619
Conversation
..._longitudinal_controller/include/pid_longitudinal_controller/pid_longitudinal_controller.hpp
Outdated
Show resolved
Hide resolved
c3a4a14
to
2f09489
Compare
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.
LGTM
@TakaHoribe Test on CI failed. Regarding the smoke_test, operation_mode must be published so that the input_data will be initialized? |
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
8412b5c
to
fca9ba0
Compare
Codecov ReportBase: 11.64% // Head: 12.57% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2619 +/- ##
==========================================
+ Coverage 11.64% 12.57% +0.92%
==========================================
Files 1312 1203 -109
Lines 91430 85458 -5972
Branches 24327 24262 -65
==========================================
+ Hits 10648 10745 +97
+ Misses 69667 63607 -6060
+ Partials 11115 11106 -9
*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 at Codecov. |
…foundation#2619) * feat(longitudinal_controller): skip integral in manual mode Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * change control_mode to operation_mode Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix test Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
…foundation#2619) * feat(longitudinal_controller): skip integral in manual mode Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * change control_mode to operation_mode Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix test Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…foundation#2619) * feat(longitudinal_controller): skip integral in manual mode Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * change control_mode to operation_mode Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix test Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Description
In the current implementation, if the vehicle speed is almost zero, the control error integral is skipped. However, when the vehicle is moving under manual control, the integration is performed which is unexpected behavior. This causes an overshoot when the vehicle is engaged while driving.
This PR fixes the issue by disabling the integration when the control_mode is not in autonomous.
Related links
must be merged with tier4/autoware_launch#683
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.