Automaton
Automaton copied to clipboard
Atm_comparator - catchUp vs skip
The Atm_comparator docs indicate that only by using catchUp=true in threshold() will it result in multiple callback calls. In my testing the value of catchUp doesn't matter. It always issues multiple callbacks when crossing multiple threshold values.
Then I noticed an undocumented "skip()" method in Atm_comparator.cpp. That one does the trick. It seems to do the same as what catchUp=false was intended to accomplish.
Thanks, I'll have a look at it. I believe the catchUp() method was added by another contributor.