Autopilot configuration reference: Difference between revisions

Line 328: Line 328:
   <output>/myflipflop/output</output>
   <output>/myflipflop/output</output>
  </flipflop>
  </flipflop>
=== Monostable ===
A monostable flip flop has only one stable state which will be reentered after a well defined time. The stable state in current implementation is the output set 'false' or 0. The Monostable is an extension of the JK flip flop. Additionally to the input values defined there, an InputValue for the definition of the pulse time is mandatory.
The moment the time for the astable state starts counting depends on the input used to set the output. If the output is set from the SET input of the RS flipflop, the output is kept true for the defined time after the SET input enters it's false state. The total time the output is true equals the time, the SET input is true plus the time defined in the <time> element.
If the output is set from the J and clock inputs of the JK flipflop, the timer starts on the raising edge of the clock input. The output signal will be true for exactly the time defined in the <time> element.
Note: the optional <R> and <K> 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.
<flipflop>
  <name>Test mf</name>
  <type>monostable</type>
  <time>
    <property>/myflipflop/pulsetime-sec</property>
    <value>10</value>
  </time>
  &lt;S&gt;<property>/myflipflop/s</property>&lt;/S&gt;
  <J><property>/myflipflop/j</property></J>
  <clock><property>/myflipflop/clock</property></clock>
  <output>/myflipflop/output</output>
  </flipflop>


== filter ==
== filter ==