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

Active "When when target value met" only responds to 1/8th values. #881

Open
NickAllott opened this issue Aug 8, 2023 · 2 comments
Open
Labels
need more info Further information is requested realearn Related to ReaLearn

Comments

@NickAllott
Copy link

I noticed that "when target value met" only responds 1/8th equals such as y == 0, y == 0.125, y == 0.25 etc.
So this couldn't be used with all other "bank selected" parameter settings in another ReaLearn Instance.

It's not an issue for me currently.

@helgoboss
Copy link
Owner

I haven't built in such a limitation. The effect you see is probably related to comparing floating point numbers, which is notoriously difficult/inaccurate. You need to account for this inaccuracy by using < or > instead of ==. In other words, your expression needs to be more tolerant.

@helgoboss helgoboss added the need more info Further information is requested label Aug 8, 2023
@NickAllott
Copy link
Author

Interesting. Can logical operators be used to limit the range from both sides? When I tried "y > 0 and y < 0.5" it stayed active for the entire range (with and without brackets).

@helgoboss helgoboss added the realearn Related to ReaLearn label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Further information is requested realearn Related to ReaLearn
Projects
None yet
Development

No branches or pull requests

2 participants