Skip to content

Curve interpolator fix v3 #723

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

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Curve interpolator fix v3 #723

merged 3 commits into from
Aug 14, 2024

Conversation

mairas
Copy link
Collaborator

@mairas mairas commented Aug 14, 2024

Applied Robin Szemeti's PR to dev-3 and fixed one related issue while at it.

rszemeti and others added 3 commits August 14, 2024 10:33
Prevent overun of curve producing erroneous values.

For example in a simple curve with two points (100,0) and (500,1)  representing inputs between 100 and 500  producing outputs 0 to 1 ... but any values outside the range eg 99 or 501 produce  arbitary results, for the majority of applications (eg a temperature sender or a fuel level sender) limiting the output to the min or max curve valies makes more sense.
extended curve at upper and lower bounds so values are interpolated gracefully beyond the curve limits
@mairas mairas merged commit 40796b9 into dev-3 Aug 14, 2024
28 checks passed
@mairas mairas deleted the curve_interpolator_fix_v3 branch August 14, 2024 08:38
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