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

Revert default speed boost for turn channels #3232

Merged
merged 4 commits into from
Jul 23, 2021

Conversation

merkispavel
Copy link
Contributor

Issue

After #3222 our internal voice-instruction tests got broken. This PR reverts the code in the speed_assigner.h still boosting turn channel speed when historic/live speed is in the tile. This is alternative way suggested in the #3222 (comment)

Tasklist

  • Add tests
  • Add #fixes with the issue number that this PR addresses
  • Update the docs with any new request parameters or changes to behavior described
  • Update the changelog
  • If you made changes to the lua files, update the taginfo too.

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

Comment on lines +266 to +268
if (use == Use::kTurnChannel && infer_turn_channels) {
speed = static_cast<uint32_t>((speed * kTurnChannelFactor) + 0.5f);
} else if ((use == Use::kRamp) && (directededge.speed_type() != SpeedType::kTagged)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just reverting a few lines from #3222

Copy link
Member

@dgearhart dgearhart left a comment

Choose a reason for hiding this comment

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

if tests look good 🚢

@merkispavel merkispavel merged commit 953c36e into master Jul 23, 2021
@merkispavel
Copy link
Contributor Author

RAD looks good 👍

@nilsnolde nilsnolde deleted the revert-speed-assigner-for-tc branch February 24, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants