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

Improved curve interpolator #689

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Improved curve interpolator #689

merged 2 commits into from
Apr 16, 2024

Commits on Apr 15, 2024

  1. Update curveinterpolator.cpp

    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.
    rszemeti authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    5b449ba View commit details
    Browse the repository at this point in the history
  2. Update curveinterpolator.cpp

    extended curve at upper and lower bounds so values are interpolated gracefully beyond the curve limits
    rszemeti authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    756722e View commit details
    Browse the repository at this point in the history