1
0
Fork 0

PA-24 and PA-26 glideslope fixes from Dave Perry, including updated autopilot gains.

This commit is contained in:
jmt 2009-09-13 08:10:56 +00:00
parent 4678f67cb2
commit 310c375ebc
3 changed files with 14 additions and 14 deletions

View file

@ -86,7 +86,7 @@ var pitchControl = propAutopilotControls.getNode("pitch", 1);
# values 0 (PITCH switch off) 1 (PITCH switch on) # values 0 (PITCH switch off) 1 (PITCH switch on)
var headingNeedleDeflection = "/instrumentation/nav/heading-needle-deflection"; var headingNeedleDeflection = "/instrumentation/nav/heading-needle-deflection";
var gsNeedleDeflection = "/instrumentation/nav/gs-needle-deflection"; var gsNeedleDeflection = "/instrumentation/nav/gs-needle-deflection-deg";
var indicatedPitchDeg = "/instrumentation/attitude-indicator/indicated-pitch-deg"; var indicatedPitchDeg = "/instrumentation/attitude-indicator/indicated-pitch-deg";
var staticPressure = "/systems/static/pressure-inhg"; var staticPressure = "/systems/static/pressure-inhg";
var altitudePressure = "/autopilot/CENTURYIII/settings/target-alt-pressure"; var altitudePressure = "/autopilot/CENTURYIII/settings/target-alt-pressure";
@ -580,18 +580,18 @@ var gsArm = func {
deviation = getprop(gsNeedleDeflection); deviation = getprop(gsNeedleDeflection);
## ##
# If the deflection is more than 0.25 degrees wait 5 seconds and check again. # If the deflection is more than 0.1 degrees wait 1 seconds and check again.
## ##
if (abs(deviation) > 0.25) if (abs(deviation) > 0.1)
{ {
#print("deviation"); #print("deviation");
settimer(gsArm, 5); settimer(gsArm, 1);
return; return;
} }
## ##
# If the deviation is less than 1 then activate the GS pitch mode. # If the deviation is less than 0.1 then activate the GS pitch mode.
## ##
elsif (abs(deviation) < 0.251) elsif (abs(deviation) < 0.1)
{ {
#print("capture"); #print("capture");
lockAltHold.setBoolValue(0); lockAltHold.setBoolValue(0);

View file

@ -47,7 +47,7 @@
<type>rotate</type> <type>rotate</type>
<object-name>LocalizerNeedle</object-name> <object-name>LocalizerNeedle</object-name>
<property alias="../../params/nav-heading-needle-deflection"/> <property alias="../../params/nav-heading-needle-deflection"/>
<factor>-3.2</factor> <factor>-2.8</factor>
<center> <center>
<x-m>0</x-m> <x-m>0</x-m>
<y-m>0</y-m> <y-m>0</y-m>
@ -102,9 +102,9 @@
<type>rotate</type> <type>rotate</type>
<object-name>GlidescopeNeedle</object-name> <object-name>GlidescopeNeedle</object-name>
<property alias="../../params/nav-gs-needle-deflection"/> <property alias="../../params/nav-gs-needle-deflection"/>
<factor>-32</factor> <factor>-25</factor>
<min-deg>-32</min-deg> <min-deg>-25</min-deg>
<max-deg>32</max-deg> <max-deg>25</max-deg>
<center> <center>
<x-m>0</x-m> <x-m>0</x-m>
<y-m>-0.03</y-m> <y-m>-0.03</y-m>

View file

@ -47,7 +47,7 @@
<type>rotate</type> <type>rotate</type>
<object-name>LocalizerNeedle</object-name> <object-name>LocalizerNeedle</object-name>
<property alias="../../params/nav-heading-needle-deflection"/> <property alias="../../params/nav-heading-needle-deflection"/>
<factor>-3.2</factor> <factor>-2.8</factor>
<center> <center>
<x-m>0</x-m> <x-m>0</x-m>
<y-m>0</y-m> <y-m>0</y-m>
@ -102,9 +102,9 @@
<type>rotate</type> <type>rotate</type>
<object-name>GlidescopeNeedle</object-name> <object-name>GlidescopeNeedle</object-name>
<property alias="../../params/nav-gs-needle-deflection"/> <property alias="../../params/nav-gs-needle-deflection"/>
<factor>-32.0</factor> <factor>-25</factor>
<min-deg>-32</min-deg> <min-deg>-25</min-deg>
<max-deg>32</max-deg> <max-deg>25</max-deg>
<center> <center>
<x-m>0</x-m> <x-m>0</x-m>
<y-m>-0.03</y-m> <y-m>-0.03</y-m>