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

Limit sum of mix ratio to 1 unless disabled by M567 S0 #197

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

wilriker
Copy link
Contributor

As proposed in https://forum.duet3d.com/topic/6397/m567-mixing-ratio-limit-check this limits the maximum sum of mix ratio to 1. There is a switch to disable this per tool and this check is enabled by default.

@wilriker wilriker force-pushed the max-mixing-ratio branch 2 times, most recently from 4d222f1 to 646272d Compare August 13, 2018 12:39
@wilriker
Copy link
Contributor Author

One open question: when summing up the mix ratios in Tool::CheckExceedsMixSumOf1() do we need to add an epsilon to

if (sum > 1.0) { return true; }

?

@wilriker wilriker changed the title Limit sum of mix ratio to 1 unless disabled by M567 S1 Limit sum of mix ratio to 1 unless disabled by M567 S0 Aug 14, 2018
@wilriker
Copy link
Contributor Author

Just pushed a minor change where the usual bool seen = false; pattern is applied to not output the status in case of Snnn was supplied but Ennn not.

@wilriker wilriker changed the base branch from v2-dev to dev January 14, 2019 19:56
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.

1 participant