You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use it to count the windlass revolutions with a magnetic sensor. I first tried DigitalInputCounter (without Debounce) and as expected, it counts several times the same event.
BUT when I switched to DigitalInputDebounceCounter, it doesn't work at all, even if the ignore_interval_ms_ value is set to 1 ms.
I can't figure out where the value since_last_event is updated in digital_input.cpp :
I tried to find all references (from Visual Studio Code) to this variable and it didn't find any one. The value since_last_event is never set or updated, so the condition in handleInterrupt() could never be true.
Is this a bug ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need some help to understand how the class DigitalInputDebounceCounter works.
https://signalk.org/SensESP/generated/docs/classsensesp_1_1_digital_input_debounce_counter.html
I use it to count the windlass revolutions with a magnetic sensor. I first tried DigitalInputCounter (without Debounce) and as expected, it counts several times the same event.
BUT when I switched to DigitalInputDebounceCounter, it doesn't work at all, even if the ignore_interval_ms_ value is set to 1 ms.
I can't figure out where the value since_last_event is updated in digital_input.cpp :
I tried to find all references (from Visual Studio Code) to this variable and it didn't find any one. The value since_last_event is never set or updated, so the condition in handleInterrupt() could never be true.
Is this a bug ?
Edit: I'm using SensESP v3.0.0beta2
Beta Was this translation helpful? Give feedback.
All reactions