Autopilot configuration reference: Difference between revisions

Jump to navigation Jump to search
m
→‎Monostable flip flop <monostable>: corrected position of explanatory text to be before the example code
(→‎Wiki articles: + State machines)
m (→‎Monostable flip flop <monostable>: corrected position of explanatory text to be before the example code)
Line 520: Line 520:


{{note|The optional <syntaxhighlight lang="xml" inline><R></syntaxhighlight> and <syntaxhighlight lang="xml" inline><K></syntaxhighlight> inputs may be used to reset the output before the internal timer expired. This will also reset the timer to zero, so no additional event will be triggered after the defined timer interval.}}
{{note|The optional <syntaxhighlight lang="xml" inline><R></syntaxhighlight> and <syntaxhighlight lang="xml" inline><K></syntaxhighlight> inputs may be used to reset the output before the internal timer expired. This will also reset the timer to zero, so no additional event will be triggered after the defined timer interval.}}
 
The following example shows how a monostable can be used to enable a certain property (/myflipflop/output) if another property (/myflipflop/s) is true for at least the specified amount of time:<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<flipflop>
<flipflop>
   <name>Test mf</name>
   <name>Test mf</name>
Line 536: Line 535:
</syntaxhighlight>
</syntaxhighlight>


The following example shows how a monostable can be used to enable a certain property (/myflipflop/output) if another property (/myflipflop/s) is true for at least the specified amount of time:
In the example below the monostable is inverted, which means the stable state is true instead of false. The key idea here is to keep the monostable in its unstable state (false) by keeping the set line true, which is the case when /myflipflop/s is false. Then, when /myflipflop/s becomes true the set line becomes false, which causes the timer to start. When the timer expires (in this case 10 seconds) the monostable will enter its stable state (true). At any time when the set line becomes true (when /myflipflop/s becomes false) the monostable will immediately enter its unstable state (false) again, resulting in /myflipflop/output to become false immediately.


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
Line 556: Line 555:
</flipflop>
</flipflop>
</syntaxhighlight>
</syntaxhighlight>
In this example the monostable is inverted, which means the stable state is true instead of false. The key idea here is to keep the monostable in its unstable state (false) by keeping the set line true, which is the case when /myflipflop/s is false. Then, when /myflipflop/s becomes true the set line becomes false, which causes the timer to start. When the timer expires (in this case 10 seconds) the monostable will enter its stable state (true). At any time when the set line becomes true (when /myflipflop/s becomes false) the monostable will immediately enter its unstable state (false) again, resulting in /myflipflop/output to become false immediately.


== Filters &lt;filter&gt; ==
== Filters &lt;filter&gt; ==
33

edits

Navigation menu