-
Notifications
You must be signed in to change notification settings - Fork 82
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
CONDITIONAL_REPORT in conjunction with setvaluedelta causes the value to never be transferred #434
Comments
Hi, this behavior is there on purpose but I understand there can be situations when it is not meeting the requirements. Instead of changing the code, I'll try and see if I can add an option to customize the behavior if e.g. updating last value at every change or only when sending out the value. I'll keep you posted. Thanks! |
Hi, The actual version of Child.cpp only set Actual situation: delta = 0.2 Can you please explain ? Maby I don't see something but what ? |
@user2684, ok I'm interested on the scenario. Not sure to understand the idea. |
I guess the idea behind the request is related to a scenario in which highlighting significant changes only and ignore little changes e.g. growing slowly but continuously. But I want to be sure this is really the scenario @MHofer had in mind before applying any change. Thanks! |
I understood something simpler than that. something like having the old implementation before your fix or the current. What you pointed out here is actually interesting and I'd keep track of it in a separate feature request for the next release since I guess could require a bit more coding but I like this discontinuity detection idea a lot |
I've added the following to Child in #438:
This should open up the door to additional behaviors in the future like discontinuity detection (for which I've opened up #439 |
hi, excuse my english (google translation)
I have noticed that it is possible with only minimal changes of the value below the delta limit the value is never sent. an example: start value = 20 delta = 0.2 every 5 min it is checked whether the value is above 20.2 or below 19.8 and stored as _last_value, e.g. 20.15
at the next check the limits are 20,35 and 19,95, the value 20,30 is not sent again because under the limit, next run with the limits 20,50 and 20,10 is worth 20,45 and it will not work Posted
it goes on forever and nothing is ever sent
I have changed the child.cpp to the effect that the value _last_value is only set when it is sent, so it is always compared against the last reported value and an unnoticed drift is not possible
I hope my execution was understandable
The text was updated successfully, but these errors were encountered: