Autopilot configuration reference: Difference between revisions

Jump to navigation Jump to search
m
Robot: Cosmetic changes
m (Robot: Cosmetic changes)
Line 89: Line 89:
=== Enable ===
=== Enable ===
Controllers can be enabled or disabled using property values. This element <enable> may contain a <prop> and a <value> element. The controller is enabled, if the value of the named property equals the given value. This feature is considered deprecated and might go away in future releases. The preferred way of defining the enable-condition is by adding a <condition> element to the <enable> element. This <condition> follows the same syntactical rules as the one used in model animations and can model complex expression trees.
Controllers can be enabled or disabled using property values. This element <enable> may contain a <prop> and a <value> element. The controller is enabled, if the value of the named property equals the given value. This feature is considered deprecated and might go away in future releases. The preferred way of defining the enable-condition is by adding a <condition> element to the <enable> element. This <condition> follows the same syntactical rules as the one used in model animations and can model complex expression trees.
To enable a wing leveler only if the current bank angle does not exceed 30° of bank, use this condition
To enable a wing leveler only if the current bank angle does not exceed 30° of bank, use this condition
  <enable>
  <enable>
   <condition>
   <condition>
Line 260: Line 260:


== Flip Flop ==
== Flip Flop ==
A flip flop is a controller that has two stable states so it can be used as a one bit memory. Four types of flip flops are implemented: <b>RS</b>, <b>JK</b>, <b>D</b> and <b>T</b>. All use positive logic and operate on the raising edge of the clock signal if a clock is used.
A flip flop is a controller that has two stable states so it can be used as a one bit memory. Four types of flip flops are implemented: '''RS''', '''JK''', '''D''' and '''T'''. All use positive logic and operate on the raising edge of the clock signal if a clock is used.
All input lines, including the clock line, are encoded as condition constructs.
All input lines, including the clock line, are encoded as condition constructs.
If negative logic for the input line is required, wrap the condition into a &lt;not&gt; tag to invert the logic.
If negative logic for the input line is required, wrap the condition into a &lt;not&gt; tag to invert the logic.
Line 302: Line 302:


=== D Flip Flop ===
=== D Flip Flop ===
The D flip flop transfers the state of the input signal <b>D</b> to the output line at the next raising edge of the clock signal, which is mandatory for this flip flop.
The D flip flop transfers the state of the input signal '''D''' to the output line at the next raising edge of the clock signal, which is mandatory for this flip flop.


Example: simple D flip flop with inverted output
Example: simple D flip flop with inverted output
Line 353: Line 353:


=== Pure Gain &lt;gain&gt; ===
=== Pure Gain &lt;gain&gt; ===
A gain filter multiplies the difference between the &lt;input&gt; and &lt;output&gt; values by a given factor. The multiplier or gain is specified by the &lt;gain&gt; element. More than one &lt;gain&gt; element formatted as in [[Autopilot_Configuration_Reference#Input_Values|Input Values]] may be present. The first with a &lt;condition&gt; element evaluating as true will define the used gain.
A gain filter multiplies the difference between the &lt;input&gt; and &lt;output&gt; values by a given factor. The multiplier or gain is specified by the &lt;gain&gt; element. More than one &lt;gain&gt; element formatted as in [[Autopilot Configuration Reference#Input Values|Input Values]] may be present. The first with a &lt;condition&gt; element evaluating as true will define the used gain.


  <filter>
  <filter>

Navigation menu