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

mixer_module: use math:constrain #15349

Merged
merged 1 commit into from
Jul 16, 2020
Merged

mixer_module: use math:constrain #15349

merged 1 commit into from
Jul 16, 2020

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Jul 16, 2020

Describe problem solved by this pull request
A detail I saw when looking at a control allocation question from @sfuhrer .

@MaEtUgR MaEtUgR requested a review from sfuhrer July 16, 2020 11:22
@MaEtUgR MaEtUgR self-assigned this Jul 16, 2020
@MaEtUgR MaEtUgR requested a review from bkueng July 16, 2020 11:24
Copy link
Contributor

@sfuhrer sfuhrer left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@MaEtUgR MaEtUgR merged commit 4667693 into master Jul 16, 2020
@MaEtUgR MaEtUgR deleted the mixer-constrain branch July 16, 2020 14:55
} else if (input < -1.0f) {
input = -1.0f;
}
math::constrain(input, -1.f, 1.f);
Copy link
Member

Choose a reason for hiding this comment

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

@MaEtUgR this is quite a severe bug: input = math::constrain(input, -1.f, 1.f);

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me fix it 😬

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for taking a closer look again!! #15379
I was convinced it's pass by reference 😞

MaEtUgR added a commit that referenced this pull request Jul 20, 2020
I changed the input constraint in #15349 but screwed up the usage
because I was convinced it's püass by reference. I'll double check
for sure next time.
bkueng pushed a commit that referenced this pull request Jul 20, 2020
I changed the input constraint in #15349 but screwed up the usage
because I was convinced it's püass by reference. I'll double check
for sure next time.
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.

3 participants