aircraft:tmd:events
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
aircraft:tmd:events [2019/07/20 15:48] – [Event Functions] jh | aircraft:tmd:events [2019/07/20 16:04] – [event_swap] jh | ||
---|---|---|---|
Line 176: | Line 176: | ||
The following objects allow for different outcomes of a triggered event. | The following objects allow for different outcomes of a triggered event. | ||
+ | After the execution of a chain of events usually either nothing happens, one or more value are changed or a pulse or timer is triggerd. | ||
+ | |||
==== DEV0 ==== | ==== DEV0 ==== | ||
Line 192: | Line 194: | ||
* Variable.Step - The value is increased or decreased by the value carried by the event (Value += event_value) | * Variable.Step - The value is increased or decreased by the value carried by the event (Value += event_value) | ||
* Variable.Reset - The value is set to 0.0 (Value = 0.0) | * Variable.Reset - The value is set to 0.0 (Value = 0.0) | ||
+ | |||
+ | > Events are not limited to the variable class. Many, in fact almost all of the [[aircraft: | ||
< | < | ||
Line 220: | Line 224: | ||
==== event_timeout ==== | ==== event_timeout ==== | ||
+ | The timeout is an object like a countdown, several things can be fired here: '' | ||
+ | to start/ | ||
+ | |||
+ | '' | ||
+ | |||
+ | When the timer has reached zero the list of '' | ||
+ | |||
+ | > The event delay could theoretically restart itself causing a periodic check, but this should be avoided if possible as there are better ways to catch changes in a system state, e.g. the '' | ||
+ | |||
< | < | ||
- | < | + | < |
< | < | ||
> | > | ||
Line 227: | Line 240: | ||
==== event_repeat ==== | ==== event_repeat ==== | ||
+ | |||
+ | Constantly fires an event as long as the input condition is non-zero. When the input is above zero the '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | > It is not intended to trigger a long chain of events, just to fluidly move an input back and forth like the directional gyro adjustment for example. | ||
< | < | ||
Line 238: | Line 257: | ||
==== event_swap ==== | ==== event_swap ==== | ||
+ | |||
+ | This can swap two values within the tmd, e.g. two variables or a variable and an '' | ||
+ | |||
+ | > The '' | ||
< | < |
aircraft/tmd/events.txt · Last modified: 2022/07/19 21:07 by jh