123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624 |
- <?xml version="1.0"?>
-
- <!-- Generic Autopilot Configuration -->
- <!-- Each component is evaluated in the order specified. You can make up -->
- <!-- property names to pass the result of one component on to a subsequent -->
- <!-- component. -->
- <PropertyList>
- <!-- =============================================================== -->
- <!-- Roll Axis Modes -->
- <!-- =============================================================== -->
- <!-- Wing leveler -->
- <pid-controller>
- <name>Wing Leveler (Turn Coordinator based)</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>wing-leveler</value>
- </enable>
- <input>
- <prop>/instrumentation/magnetic-compass/indicated-heading-deg</prop>
- </input>
- <reference>
- <value>0.0</value>
- </reference>
- <output>
-
- <prop>/controls/flight/fcs/yaw</prop>
- </output>
- <config>
- <Kp>-1.0</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>3.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-20.0</u_min> <!-- minimum output clamp -->
- <u_max>20.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- Heading Bug Hold. 2 stage cascade controller. -->
- <!-- Stage #1 sets target roll based on diff between current heading -->
- <!-- and heading bug. -->
- <pid-controller>
- <name>Heading Bug Hold (DG based) Stage 1</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>dg-heading-hold</value>
- </enable>
- <input>
- <prop>/autopilot/internal/heading-bug-error-deg</prop>
- </input>
- <reference>
- <value>0.0</value>
- </reference>
- <output>
- <prop>/autopilot/internal/target-roll-deg</prop>
- </output>
- <config>
- <Kp>-1.0</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-20.0</u_min> <!-- minimum output clamp -->
- <u_max>20.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
- <pid-controller>
- <name>Heading Bug Hold (DG based) Stage 2</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>dg-heading-hold</value>
- </enable>
- <input>
- <prop>/orientation/roll-deg</prop>
- </input>
- <reference>
- <prop>/autopilot/internal/target-roll-deg</prop>
- </reference>
- <output>
- <prop>/controls/flight/fcs/roll</prop>
-
- </output>
- <config>
- <Kp>0.1</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
-
- <pid-controller>
- <name>Heading Bug Hold (DG based) Stage 1</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>dg-heading-hold</value>
- </enable>
- <input>
- <prop>/autopilot/internal/heading-bug-error-deg</prop>
- </input>
- <reference>
- <value>0.0</value>
- </reference>
- <output>
- <prop>/autopilot/internal/target-yaw-deg</prop>
- </output>
- <config>
- <Kp>-1.0</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>5.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-20.0</u_min> <!-- minimum output clamp -->
- <u_max>20.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
-
-
- <pid-controller>
- <name>Heading Bug Hold (DG based) Stage 2</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>dg-heading-hold</value>
- </enable>
- <input>
- <prop>/orientation/yaw-deg</prop>
- </input>
- <reference>
- <prop>/autopilot/internal/target-yaw-deg</prop>
- </reference>
- <output>
-
- <prop>/controls/flight/fcs/yaw</prop>
- </output>
- <config>
- <Kp>0.1</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- True Heading hold. 2 stage cascade controller. -->
- <!-- Stage #1 sets target roll based on diff between current heading -->
- <!-- and target heading. -->
- <pid-controller>
- <name>True Heading Hold (DG based) Stage 1</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>true-heading-hold</value>
- </enable>
- <input>
- <prop>/autopilot/internal/true-heading-error-deg</prop>
- </input>
- <reference>
- <value>0.0</value>
- </reference>
- <output>
- <prop>/autopilot/internal/target-roll-deg</prop>
- </output>
- <config>
- <Kp>-1.0</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-20.0</u_min> <!-- minimum output clamp -->
- <u_max>20.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
- <pid-controller>
- <name>True Heading Hold (DG based) Stage 2</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>true-heading-hold</value>
- </enable>
- <input>
- <prop>/orientation/roll-deg</prop>
- </input>
- <reference>
- <prop>/autopilot/internal/target-roll-deg</prop>
- </reference>
- <output>
- <prop>/controls/flight/fcs/roll</prop>
- <prop>/controls/flight/fcs/yaw</prop>
- </output>
- <config>
- <Kp>0.1</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- Nav1 hold. 2 stage cascade controller. -->
- <!-- Stage #1 sets target roll based on diff between current heading -->
- <!-- and target heading. -->
- <pid-controller>
- <name>Nav1 Hold Stage 1</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>nav1-hold</value>
- </enable>
- <input>
- <prop>/autopilot/internal/nav1-heading-error-deg</prop>
- </input>
- <reference>
- <value>0.0</value>
- </reference>
- <output>
- <prop>/autopilot/internal/target-roll-deg</prop>
- </output>
- <config>
- <Kp>-1.0</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-20.0</u_min> <!-- minimum output clamp -->
- <u_max>20.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
- <pid-controller>
- <name>Nav1 Hold Stage 2</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/heading</prop>
- <value>nav1-hold</value>
- </enable>
- <input>
- <prop>/orientation/roll-deg</prop>
- </input>
- <reference>
- <prop>/autopilot/internal/target-roll-deg</prop>
- </reference>
- <output>
- <prop>/controls/flight/fcs/roll</prop>
- <prop>/controls/flight/fcs/yaw</prop>
- </output>
- <config>
- <Kp>0.1</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- =============================================================== -->
- <!-- Pitch Axis Modes -->
- <!-- =============================================================== -->
- <filter>
- <name>Pitch Hold</name>
- <type>gain</type>
- <debug>false</debug>
- <enable>
- <condition>
- <equals>
- <property>/autopilot/locks/altitude</property>
- <value>pitch-hold</value>
- </equals>
- </condition>
- </enable>
- <input>
- <property>/autopilot/settings/target-pitch-deg</property>
- <value>0</value>
- </input>
- <output>
- <property>/autopilot/internal/target-pitch-deg</property>
- </output>
- <gain>1.0</gain>
- <u_min>-70.0</u_min>
- <u_max>70.0</u_max>
- </filter>
-
- <pid-controller>
- <name>Altitude Hold Computer</name>
- <debug>false</debug>
- <enable>
- <condition>
- <equals>
- <property>/autopilot/locks/altitude</property>
- <value>altitude-hold</value>
- </equals>
- </condition>
- </enable>
- <input>
- <property>/position/altitude-ft</property>
- </input>
- <reference>
- <property>/autopilot/settings/target-altitude-ft</property>
- </reference>
- <output>
- <property>/autopilot/internal/target-pitch-deg</property>
- </output>
- <config>
- <Kp>0.075</Kp> <!-- proportional gain -0.01 -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.5</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>7.5</Ti> <!-- integrator time 10.0 -->
- <Td>0.0001</Td> <!-- derivator time -->
- <u_min>-6.0</u_min> <!-- minimum output clamp -->
- <u_max>6.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
-
- <pid-controller>
- <name>Altitude TFR Computer</name>
- <debug>false</debug>
- <enable>
- <condition>
- <equals>
- <property>/autopilot/locks/altitude</property>
- <value>agl-hold</value>
- </equals>
- </condition>
- </enable>
- <input>
- <property>/position/altitude-agl-ft</property>
- </input>
- <reference>
- <property>/autopilot/settings/target-agl-ft</property>
- </reference>
- <output>
- <property>/autopilot/internal/target-pitch-deg</property>
- </output>
- <config>
- <Kp>0.075</Kp> <!-- proportional gain -0.01 -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.5</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>7.5</Ti> <!-- integrator time 10.0 -->
- <Td>0.0001</Td> <!-- derivator time -->
- <u_min>-10.0</u_min> <!-- minimum output clamp -->
- <u_max>15.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
-
- <pid-controller>
- <name>System Command: Pitch</name>
- <debug>false</debug>
- <enable>
- <condition>
- <not-equals>
- <property>/autopilot/locks/altitude</property>
- <value />
- </not-equals>
- </condition>
- </enable>
- <input>
- <property>/orientation/pitch-deg</property>
- </input>
- <reference>
- <property>/autopilot/internal/target-pitch-deg</property>
- </reference>
- <output>
- <property>/controls/flight/elevator</property>
- </output>
- <config>
- <Kp>-0.05</Kp>
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <Ti>20.0</Ti> <!-- integrator time 10.0 -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-0.35</u_min> <!-- minimum output clamp -->
- <u_max>0.35</u_max>
- </config>
- </pid-controller>
-
- <!-- vertical speed hold -->
- <pid-controller>
- <name>Vertical Speed Hold</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/altitude</prop>
- <value>vertical-speed-hold</value>
- </enable>
- <input>
- <prop>/velocities/vertical-speed-fps</prop>
- </input>
- <reference>
- <prop>/autopilot/settings/vertical-speed-fpm</prop>
- <scale>0.01667</scale>
- </reference>
- <output>
- <prop>/controls/flight/elevator-trim</prop>
- </output>
- <config>
- <Kp>-0.0025</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- Glideslope hold. -->
- <!-- Stage #2 drives the elevator-trim to achieve the desired climb rate. -->
- <pid-controller>
- <name>Glideslop Hold</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/altitude</prop>
- <value>gs1-hold</value>
- </enable>
- <input>
- <prop>/velocities/vertical-speed-fps</prop>
- </input>
- <reference>
- <prop>/instrumentation/nav[0]/gs-rate-of-climb</prop>
- </reference>
- <output>
- <prop>/controls/flight/elevator-trim</prop>
- </output>
- <config>
- <Kp>-0.01</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- vertical speed hold -->
- <pid-controller>
- <name>Vertical Speed Hold</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/altitude</prop>
- <value>vertical-speed-hold</value>
- </enable>
- <input>
- <prop>/velocities/vertical-speed-fps</prop>
- </input>
- <reference>
- <prop>/autopilot/settings/vertical-speed-fpm</prop>
- <scale>0.01667</scale>
- </reference>
- <output>
- <prop>/controls/flight/elevator-trim</prop>
- </output>
- <config>
- <Kp>-0.01</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- =============================================================== -->
- <!-- Velocity Modes -->
- <!-- =============================================================== -->
- <!-- Auto throttle -->
- <pid-controller>
- <name>Auto Throttle (5 sec lookahead)</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/speed</prop>
- <value>speed-with-throttle</value>
- </enable>
- <input>
- <!-- <prop>/autopilot/internal/lookahead-5-sec-airspeed-kt</prop> -->
- <prop>/velocities/airspeed-kt</prop>
- </input>
- <reference>
- <prop>/autopilot/settings/target-speed-kt</prop>
- </reference>
- <output>
- <prop>/controls/engines/engine[0]/throttle</prop>
- <prop>/controls/engines/engine[1]/throttle</prop>
- <prop>/controls/engines/engine[2]/throttle</prop>
- <prop>/controls/engines/engine[3]/throttle</prop>
- <prop>/controls/engines/engine[4]/throttle</prop>
- <prop>/controls/engines/engine[5]/throttle</prop>
- <prop>/controls/engines/engine[6]/throttle</prop>
- <prop>/controls/engines/engine[7]/throttle</prop>
- </output>
- <config>
- <Kp>0.1</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>10.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>0.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <!-- Hold speed by varying pitch trim (Two stage cascading controller) -->
- <pid-controller>
- <name>Speed hold (vary pitch trim) Stage #1</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/speed</prop>
- <value>speed-with-pitch-trim</value>
- </enable>
- <input>
- <prop>/autopilot/internal/lookahead-5-sec-airspeed-kt</prop>
- </input>
- <reference>
- <prop>/autopilot/settings/target-speed-kt</prop>
- </reference>
- <output>
- <prop>/autopilot/settings/target-pitch-deg</prop>
- </output>
- <config>
- <Kp>-1.0</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>1.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-15.0</u_min><!-- minimum output clamp -->
- <u_max>15.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- <pid-controller>
- <name>Speed hold (vary pitch trim) Stage #2</name>
- <debug>false</debug>
- <enable>
- <prop>/autopilot/locks/speed</prop>
- <value>speed-with-pitch-trim</value>
- </enable>
- <input>
- <prop>/orientation/pitch-deg</prop>
- </input>
- <reference>
- <prop>/autopilot/settings/target-pitch-deg</prop>
- </reference>
- <output>
- <prop>/controls/flight/elevator-trim</prop>
- </output>
- <config>
- <Kp>-0.05</Kp> <!-- proportional gain -->
- <beta>1.0</beta> <!-- input value weighing factor -->
- <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
- <gamma>0.0</gamma> <!-- input value weighing factor for -->
- <!-- unfiltered derivative error -->
- <Ti>1.0</Ti> <!-- integrator time -->
- <Td>0.00001</Td> <!-- derivator time -->
- <u_min>-1.0</u_min> <!-- minimum output clamp -->
- <u_max>1.0</u_max> <!-- maximum output clamp -->
- </config>
- </pid-controller>
- </PropertyList>
|