statecharts icon indicating copy to clipboard operation
statecharts copied to clipboard

dynamic evaluation of time trigger expressions

Open andreasmuelder opened this issue 8 years ago • 0 comments

The time trigger expression is evaluated statically when the time trigger is started. For example, if the following statement is used as a state local reaction:

every (myVar > 10 ? 1000 : 200) ms / doSomething()

the expression myVar > 10 ? 1000 : 200 is evaluated only once when the state becomes active. It should be re-evaluated after every cycle instead.

andreasmuelder avatar Mar 09 '16 15:03 andreasmuelder