added support for the <abs> element
This commit is contained in:
parent
ec0ed21b73
commit
53ca437c7b
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,7 @@ The complete XML syntax for a InputValue is
|
||||||
<offset>0.0</offset>
|
<offset>0.0</offset>
|
||||||
<max>infinity</max>
|
<max>infinity</max>
|
||||||
<min>-infinity<min>
|
<min>-infinity<min>
|
||||||
|
<abs>false</abs>
|
||||||
</some-element>
|
</some-element>
|
||||||
|
|
||||||
The enclosing element <some-element> is the element defined in each filter, like <input>, <u_min>,
|
The enclosing element <some-element> is the element defined in each filter, like <input>, <u_min>,
|
||||||
|
@ -55,6 +56,7 @@ The default values for elements not given are:
|
||||||
<property/> : none
|
<property/> : none
|
||||||
<min/> : unclipped
|
<min/> : unclipped
|
||||||
<max/> : unclipped
|
<max/> : unclipped
|
||||||
|
<abs/> : false
|
||||||
|
|
||||||
Some examples:
|
Some examples:
|
||||||
<input>
|
<input>
|
||||||
|
@ -115,6 +117,10 @@ Example: Set the gain to 3.0 if /autopilot/locks/heading equals dg-heading-hold
|
||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
<gain>
|
<gain>
|
||||||
<digital-filter>
|
<digital-filter>
|
||||||
|
|
||||||
|
If the element <abs> is used and set to the value "true", only the absolute value of the input
|
||||||
|
(the positive part) is used for further computations. The abs function is applied after all
|
||||||
|
other computations are completed.
|
||||||
|
|
||||||
OutputValue
|
OutputValue
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
Loading…
Reference in a new issue