]> git.mxchange.org Git - flightgear.git/commit
Roy Ovesen:
authorcurt <curt>
Tue, 1 Feb 2005 21:00:24 +0000 (21:00 +0000)
committercurt <curt>
Tue, 1 Feb 2005 21:00:24 +0000 (21:00 +0000)
commitec50bcfb5a27fa72cff98eb1a24943cf48910db5
treeac9b6c50b39e03bdf307de04231ebcbcd2756a8e
parent5a5b67bab1a01ae95a1975cdc9478a3cc91c95a4
Roy Ovesen:

I've added some features to the PID controller:

Ability to set desired sampling interval in seconds. Use <Ts> under <config>
to set the desired sampling interval of the PID controller.

Example:
<config>
     <Ts>0.1</Ts>        <!-- desired sampling interval -->
     <Kp>-0.05</Kp>        <!-- proportional gain -->
     <beta>1.0</beta>    <!-- input value weighing factor -->
     ...
     ...
</config>

Ts defaults to 0.0, so if you don't set it it samples at the highest possible
frequency.

Add an offset to the input variables (input and reference).
Example:
    <reference>
      <prop>/controls/flight/elevator</prop>
      <scale>-1.5</scale>
      <offset>1.0</offset>
    </reference>

Note that <scale> has higher precedence than <offset>, regardless of the order
that they appear in the config file.
src/Autopilot/xmlauto.cxx
src/Autopilot/xmlauto.hxx