Skip to content

feat(pid_long): apply slope compensation for stopped acc - #12007

Merged
yuki-takagi-66 merged 1 commit into
autowarefoundation:mainfrom
tier4:takagi/pid/apply-slope-comensation-for-stopped-state
Feb 25, 2026
Merged

yuki-takagi-66 merged 1 commit into
autowarefoundation:mainfrom
tier4:takagi/pid/apply-slope-comensation-for-stopped-state

Conversation

@yuki-takagi-66

@yuki-takagi-66 yuki-takagi-66 commented Jan 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Currently, stopped_acc does not take road slope into account. Therefore, it is necessary to set a value strong enough to hold the vehicle on the steepest expected slope.

This change adds deceleration value equivalent to the absolute value of the slope to the braking command. This allows for reliable stopping even if stopped_acc is set to a lower value (e.g., a value comparable to the slope).

Related links

How was this PR tested?

psim
Before: Uphill slope 10% with stopped_acc: 0.4
https://github.com/user-attachments/assets/8f85f115-03d5-49dc-b624-ed1d85d55195

After: Uphill slope 10% with stopped_acc: 0.4
https://github.com/user-attachments/assets/196bc272-2f3d-409f-9024-d90971f3ffff

Uphill slope 10% with stopped_acc: 3.4
image

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions Bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jan 30, 2026
@github-actions

github-actions Bot commented Jan 30, 2026 •

Copy link
Copy Markdown

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@yuki-takagi-66 yuki-takagi-66 changed the title feat(pid_long) feat(pid_long): apply slope comensation for stopped acc Jan 30, 2026
@yuki-takagi-66
yuki-takagi-66 marked this pull request as ready for review January 30, 2026 04:32
@yuki-takagi-66 yuki-takagi-66 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 2, 2026
@codecov

codecov Bot commented Feb 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 19.13%. Comparing base (ce479fd) to head (b59a514).
⚠️ Report is 28 commits behind head on main.

Files with missing lines Patch % Lines
...nal_controller/src/pid_longitudinal_controller.cpp 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12007      +/-   ##
==========================================
+ Coverage   18.13%   19.13%   +0.99%     
==========================================
  Files        1839     1865      +26     
  Lines      126417   127456    +1039     
  Branches    44329    46752    +2423     
==========================================
+ Hits        22922    24383    +1461     
- Misses      84399    85189     +790     
+ Partials    19096    17884    -1212     
Flag Coverage Δ *Carryforward flag
daily 20.61% <ø> (ø) Carriedforward from ce479fd
daily-cuda 18.13% <ø> (ø) Carriedforward from ce479fd
differential 4.92% <66.66%> (?)
total-cuda 18.12% <ø> (ø) Carriedforward from ce479fd

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yuki-takagi-66
yuki-takagi-66 force-pushed the takagi/pid/apply-slope-comensation-for-stopped-state branch from 7be17ef to 70f9787 Compare February 2, 2026 10:41
@yuki-takagi-66 yuki-takagi-66 changed the title feat(pid_long): apply slope comensation for stopped acc feat(pid_long): apply slope compensation for stopped acc Feb 2, 2026
Signed-off-by: yuki-takagi-66 <yuki.takagi@tier4.jp>
@yuki-takagi-66
yuki-takagi-66 force-pushed the takagi/pid/apply-slope-comensation-for-stopped-state branch from 70f9787 to b59a514 Compare February 20, 2026 06:37
@yuki-takagi-66
yuki-takagi-66 merged commit 9eec3a4 into autowarefoundation:main Feb 25, 2026
43 of 44 checks passed
@yuki-takagi-66
yuki-takagi-66 deleted the takagi/pid/apply-slope-comensation-for-stopped-state branch February 25, 2026 08:05
@github-project-automation github-project-automation Bot moved this from To Triage to Done in Software Working Group Feb 25, 2026
mkquda pushed a commit to tier4/autoware_universe that referenced this pull request Mar 16, 2026
…ndation#12007)

add slope compensation for stopped acc

Signed-off-by: yuki-takagi-66 <yuki.takagi@tier4.jp>
mkquda pushed a commit to tier4/autoware_universe that referenced this pull request Apr 22, 2026
…ndation#12007)

add slope compensation for stopped acc

Signed-off-by: yuki-takagi-66 <yuki.takagi@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:control Vehicle control algorithms and mechanisms. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants