Here is the dilemma, this is my first time working with autopilots, so bear with me.
The autopilot for my MD-88 does not turn the yoke enough, therefore it ALWAYS overruns the heading set. Below is the area with the problems. I cannot for the life of me find which value has the problem, and if someone has more knowledge of autopilots, I appreciate.
Code: Select all
<!-- 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/fdm-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> <!-- 10 integrator time -->
<Td>0.00001</Td> <!-- 0.00001 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/aileron</prop>
</output>
<config>
<Kp>0.5</Kp> <!-- 0.5 proportional gain -->
<beta>1.0</beta> <!-- 1.0 input value weighing factor -->
<alpha>0.1</alpha> <!-- 0.1 low pass filter weighing factor -->
<gamma>0.0</gamma> <!-- 0.0 input value weighing factor for -->
<!-- unfiltered derivative error -->
<Ti>1.0</Ti> <!-- 10 integrator time -->
<Td>0.00001</Td> <!-- 0.00001 derivator time -->
<u_min>-1</u_min> <!-- -1.0 minimum output clamp -->
<u_max>1</u_max> <!-- 1.0 maximum output clamp -->
</config>
</pid-controller>
These are the unmodified values. I have tried numbers from other aircraft, but it only seems to affect the initial bank, not the corrective bank to level at the selected heading.
ATC411