Skip to content
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(shift_decider): prevent chattering of gear command when target speed is near 0 #4213

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

tkimura4
Copy link
Contributor

@tkimura4 tkimura4 commented Jul 10, 2023

Description

If the target speed is around 0.01(vel_threshold) when Autoware engages, gear command may chatter on DRIVE and PARKING ( = current_gear_ptr_->report).

Such gear command chattering can adversely affect hardware, so this PR prevents chattering by sending the same gear command as last time when the target speed is low.

image

Related links

Tests performed

no tests

Notes for reviewers

none

Interface changes

none

Effects on system behavior

This PR prevents chattering of gear command.

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

…eed is near 0

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@tkimura4 tkimura4 requested a review from TakaHoribe as a code owner July 10, 2023 07:05
@tkimura4 tkimura4 requested a review from shmpwk July 10, 2023 07:05
@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jul 10, 2023
Copy link
Contributor

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tkimura4 tkimura4 merged commit cf1cda0 into autowarefoundation:main Jul 11, 2023
@tkimura4 tkimura4 deleted the fix/gear_chattering branch July 11, 2023 01:39
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Jul 11, 2023
…eed is near 0 (autowarefoundation#4213)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Jul 11, 2023
…eed is near 0 (autowarefoundation#4213)

Signed-off-by: tomoya.kimura <tomoya.kimura@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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants