-
Notifications
You must be signed in to change notification settings - Fork 659
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(pid_longitudinal_control): slope definition #5116
Conversation
Signed-off-by: Takamasa Horibe <[email protected]>
Signed-off-by: Takamasa Horibe <[email protected]>
return pitch; | ||
// The pitch angle of the posture is defined as positive when facing downward. | ||
// Thus, the definition is the opposite of the slope. | ||
const auto slope = -pitch; |
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.
This is the main fix of this PR.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5116 +/- ##
=======================================
Coverage 14.99% 14.99%
=======================================
Files 1608 1608
Lines 111834 111837 +3
Branches 34693 34694 +1
=======================================
+ Hits 16764 16766 +2
Misses 76336 76336
- Partials 18734 18735 +1
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
FIxed in #5199 |
Description
Fix the wrong definition of the slope in the code coming from #5090.
To remove the ambiguity in the definitions of pitch angle and slope angle, they have been defined in the readme.
Additionally, because the function name getPitch was unclear, it has been unified to the function name getSlope.
Related links
None
Tests performed
run psim.
Notes for reviewers
None
Interface changes
None
Effects on system behavior
The wrong slope compensation is fixed coming from #5090.
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.