A32X: Major Canvas PFD WIP work, fix HDG Pre-Select

This commit is contained in:
Joshua Davidson 2017-11-15 16:15:49 -05:00
parent b18652e178
commit 780769a9c7
6 changed files with 359 additions and 157 deletions

View file

@ -117,7 +117,7 @@ var canvas_PFD_1 = {
return ["FMA_man","FMA_manmode","FMA_flxtemp","FMA_thrust","FMA_lvrclb","FMA_pitch","FMA_pitcharm","FMA_pitcharm2","FMA_roll","FMA_rollarm","FMA_combined","FMA_ctr_msg","FMA_catmode","FMA_cattype","FMA_nodh","FMA_dh","FMA_dhn","FMA_ap","FMA_fd", return ["FMA_man","FMA_manmode","FMA_flxtemp","FMA_thrust","FMA_lvrclb","FMA_pitch","FMA_pitcharm","FMA_pitcharm2","FMA_roll","FMA_rollarm","FMA_combined","FMA_ctr_msg","FMA_catmode","FMA_cattype","FMA_nodh","FMA_dh","FMA_dhn","FMA_ap","FMA_fd",
"FMA_athr","FMA_man_box","FMA_flx_box","FMA_thrust_box","FMA_pitch_box","FMA_pitcharm_box","FMA_roll_box","FMA_rollarm_box","FMA_combined_box","FMA_catmode_box","FMA_cattype_box","FMA_cat_box","FMA_dh_box","FMA_ap_box","FMA_fd_box","FMA_athr_box", "FMA_athr","FMA_man_box","FMA_flx_box","FMA_thrust_box","FMA_pitch_box","FMA_pitcharm_box","FMA_roll_box","FMA_rollarm_box","FMA_combined_box","FMA_catmode_box","FMA_cattype_box","FMA_cat_box","FMA_dh_box","FMA_ap_box","FMA_fd_box","FMA_athr_box",
"FMA_Middle1","FMA_Middle2","ASI_scale","ASI_target","ASI_mach","ASI_mach_decimal","ASI_ten_sec","AI_center","AI_bank","AI_slipskid","AI_horizon","AI_horizon_ground","AI_horizon_sky","AI_stick","AI_stick_pos","AI_agl_g","AI_agl","FD_roll","FD_pitch", "FMA_Middle1","FMA_Middle2","ASI_scale","ASI_target","ASI_mach","ASI_mach_decimal","ASI_ten_sec","AI_center","AI_bank","AI_slipskid","AI_horizon","AI_horizon_ground","AI_horizon_sky","AI_stick","AI_stick_pos","AI_agl_g","AI_agl","FD_roll","FD_pitch",
"ALT_digits","ALT_tens","VS_pointer","VS_box","VS_digit","QNH","QNH_setting","QNH_std","QNH_box","LOC_pointer","LOC_scale","GS_scale","GS_pointer","HDG_target"]; "ALT_digits","ALT_tens","VS_pointer","VS_box","VS_digit","QNH","QNH_setting","QNH_std","QNH_box","LOC_pointer","LOC_scale","GS_scale","GS_pointer","HDG_target","HDG_scale","HDG_one","HDG_two","HDG_three","HDG_four","HDG_five","HDG_six","HDG_seven"];
}, },
update: func() { update: func() {
state1 = getprop("/systems/thrust/state1"); state1 = getprop("/systems/thrust/state1");
@ -514,11 +514,39 @@ var canvas_PFD_1 = {
me["GS_pointer"].setTranslation(0, getprop("/instrumentation/nav[0]/gs-needle-deflection-norm") * -197); me["GS_pointer"].setTranslation(0, getprop("/instrumentation/nav[0]/gs-needle-deflection-norm") * -197);
# Heading # Heading
# if (getprop("/it-autoflight/custom/show-hdg") == 1) { me.heading = getprop("/instrumentation/pfd/heading-deg");
# me["HDG_target"].show(); me.headOffset = me.heading / 10 - int (me.heading / 10);
# } else { me.middleText = roundabout(me.heading / 10);
me.middleOffset = nil;
if(me.middleText == 36) {
me.middleText = 0;
}
me.leftText1 = me.middleText == 0?35:me.middleText - 1;
me.rightText1 = me.middleText == 35?0:me.middleText + 1;
me.leftText2 = me.leftText1 == 0?35:me.leftText1 - 1;
me.rightText2 = me.rightText1 == 35?0:me.rightText1 + 1;
me.leftText3 = me.leftText2 == 0?35:me.leftText2 - 1;
me.rightText3 = me.rightText2 == 35?0:me.rightText2 + 1;
if (me.headOffset > 0.5) {
me.middleOffset = -(me.headOffset-1) * 98.5416;
} else {
me.middleOffset = -me.headOffset * 98.5416;
}
me["HDG_scale"].setTranslation(me.middleOffset, 0);
me["HDG_scale"].update();
me["HDG_four"].setText(sprintf("%d", me.middleText));
me["HDG_five"].setText(sprintf("%d", me.rightText1));
me["HDG_three"].setText(sprintf("%d", me.leftText1));
me["HDG_six"].setText(sprintf("%d", me.rightText2));
me["HDG_two"].setText(sprintf("%d", me.leftText2));
me["HDG_seven"].setText(sprintf("%d", me.rightText3));
me["HDG_one"].setText(sprintf("%d", me.leftText3));
if (getprop("/it-autoflight/custom/show-hdg") == 1) {
me["HDG_target"].show();
} else {
me["HDG_target"].hide(); me["HDG_target"].hide();
# } }
}, },
}; };
@ -547,3 +575,8 @@ var showPFD1 = func {
var dlg = canvas.Window.new([512, 512], "dialog").set("resize", 1); var dlg = canvas.Window.new([512, 512], "dialog").set("resize", 1);
dlg.setCanvas(PFD_display); dlg.setCanvas(PFD_display);
} }
var roundabout = func(x) {
var y = x - int(x);
return y < 0.5 ? int(x) : 1 + int(x) ;
};

View file

@ -22,7 +22,7 @@
<dc:format>image/svg+xml</dc:format> <dc:format>image/svg+xml</dc:format>
<dc:type <dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title /> <dc:title></dc:title>
</cc:Work> </cc:Work>
</rdf:RDF> </rdf:RDF>
</metadata> </metadata>
@ -41,14 +41,14 @@
inkscape:window-height="1030" inkscape:window-height="1030"
id="namedview371" id="namedview371"
showgrid="false" showgrid="false"
inkscape:zoom="1.4142136" inkscape:zoom="4"
inkscape:cx="641.32764" inkscape:cx="651.96329"
inkscape:cy="629.48321" inkscape:cy="66.473575"
inkscape:window-x="1592" inkscape:window-x="1592"
inkscape:window-y="-8" inkscape:window-y="-8"
inkscape:window-maximized="1" inkscape:window-maximized="1"
inkscape:current-layer="svg2" inkscape:current-layer="svg2"
showguides="false" showguides="true"
inkscape:snap-global="false" inkscape:snap-global="false"
units="pt" units="pt"
fit-margin-top="0" fit-margin-top="0"
@ -1059,6 +1059,13 @@
d="m -193.7976,610.26868 1284.1095,0" d="m -193.7976,610.26868 1284.1095,0"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.20000005;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.20000005;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
</g> </g>
<rect
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.4000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="rect4671"
width="89.289597"
height="64.328094"
x="768.71039"
y="480.85416" />
<text <text
inkscape:label="#text979" inkscape:label="#text979"
transform="scale(1.0000144,0.9999856)" transform="scale(1.0000144,0.9999856)"
@ -1112,12 +1119,14 @@
width="469.54089" width="469.54089"
id="rect4416" id="rect4416"
style="fill:#4c4c4c;fill-opacity:1;stroke:none;stroke-width:2.4000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> style="fill:#4c4c4c;fill-opacity:1;stroke:none;stroke-width:2.4000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path <rect
sodipodi:nodetypes="cc" style="opacity:0.46000001;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:1.27696717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:connector-curvature="0" id="HDG_scale_clip"
id="path4422" width="469.54053"
d="m 211.98006,943.4104 472.74554,0" height="67.255974"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> x="213.58055"
y="941.81519"
inkscape:label="#rect9211" />
<rect <rect
inkscape:label="#rect9211" inkscape:label="#rect9211"
y="890.56866" y="890.56866"
@ -1126,6 +1135,12 @@
width="469.54053" width="469.54053"
id="HDG_target_clip" id="HDG_target_clip"
style="opacity:0.46000001;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:1.27696717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> style="opacity:0.46000001;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:1.27696717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4422"
d="m 211.98006,943.4104 472.74554,0"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path <path
sodipodi:nodetypes="cc" sodipodi:nodetypes="cc"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
@ -2015,10 +2030,10 @@
id="FMA_ctr_msg" id="FMA_ctr_msg"
y="115.0584" y="115.0584"
x="505.48523" x="505.48523"
style="font-style:normal;font-weight:normal;font-size:28.05622673px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:0.65757734;" style="font-style:normal;font-weight:normal;font-size:28.05622673px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:0.65757734"
xml:space="preserve" xml:space="preserve"
inkscape:label="#text983"><tspan inkscape:label="#text983"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:35.99948502px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ff0000;fill-opacity:1;stroke-width:0.65757734;" style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:35.99948502px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ff0000;fill-opacity:1;stroke-width:0.65757734"
y="115.0584" y="115.0584"
x="505.48523" x="505.48523"
id="tspan4614" id="tspan4614"
@ -2380,43 +2395,6 @@
width="33.211578" width="33.211578"
id="GS_pointer" id="GS_pointer"
style="fill:none;fill-opacity:1;stroke:#b055be;stroke-width:4.03498697;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> style="fill:none;fill-opacity:1;stroke:#b055be;stroke-width:4.03498697;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
style="fill:#c9d121;fill-opacity:1;stroke:none;stroke-width:4.64450645;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HDG_pointer"
width="7.7972808"
height="58.119724"
x="443.85849"
y="902.20178"
inkscape:label="#rect4954" />
<g
id="CRS_pointer"
inkscape:label="#g5019"
transform="matrix(1.0666667,0,0,1.066636,7.9500002,2.8086774)">
<rect
y="897.6875"
x="409.21875"
height="46.03125"
width="6.1875"
id="rect5013"
style="fill:#b055be;fill-opacity:1;stroke:none;stroke-width:2.79342866;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="matrix(0,1,-1,0,0,0)"
style="fill:#b055be;fill-opacity:1;stroke:none;stroke-width:2.19441199;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect5015"
width="6.1875"
height="28.40625"
x="929.98438"
y="-426.51562" />
</g>
<rect
inkscape:label="#rect4872"
transform="matrix(0.57965979,0.8148586,-0.57965979,0.8148586,0,0)"
y="194.07515"
x="966.534"
height="14.344484"
width="14.344484"
id="TRK_pointer"
style="fill:none;fill-opacity:1;stroke:#08b837;stroke-width:3.86463165;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect <rect
inkscape:label="#rect4290" inkscape:label="#rect4290"
y="853.61444" y="853.61444"
@ -2451,7 +2429,7 @@
d="m 663.61529,298.28185 -17.53626,17.53574" d="m 663.61529,298.28185 -17.53626,17.53574"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path <path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.2;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.20000005;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 302.91873,276.44572 c 89.26696,-54.70986 201.68233,-54.70986 290.94929,0" d="m 302.91873,276.44572 c 89.26696,-54.70986 201.68233,-54.70986 290.94929,0"
id="path894" id="path894"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
@ -2489,6 +2467,29 @@
id="path922" id="path922"
d="m 13.167811,790.62913 141.300719,0" d="m 13.167811,790.62913 141.300719,0"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<g
id="ALT_box"
inkscape:label="#g963"
transform="matrix(1.0666667,0,0,1.066636,2.2828427,-0.50381959)">
<path
style="fill:none;fill-opacity:1;stroke:#ffff00;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 720.02617,452.36852 80.7091,-2.9e-4"
id="path951"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cccccc"
inkscape:connector-curvature="0"
id="rect953"
d="m 800.735,452.36823 2e-4,-14.93305 48.81998,0 0,87.51492 -48.81991,0 0,-14.31212"
style="fill:#000000;fill-opacity:1;stroke:#ffff00;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path958"
d="m 720.02617,510.63854 80.7091,-5.6e-4"
style="fill:none;fill-opacity:1;stroke:#ffff00;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
</g>
<rect <rect
style="opacity:0.46000001;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:1.27696717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" style="opacity:0.46000001;fill:#ff00ff;fill-opacity:1;stroke:none;stroke-width:1.27696717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="ALT_tens_clip" id="ALT_tens_clip"
@ -2561,29 +2562,6 @@
x="898.703" x="898.703"
sodipodi:role="line" sodipodi:role="line"
id="tspan4302">60</tspan></text> id="tspan4302">60</tspan></text>
<g
id="ALT_box"
inkscape:label="#g963"
transform="matrix(1.0666667,0,0,1.066636,2.2828427,-0.50381959)">
<path
style="fill:none;fill-opacity:1;stroke:#ffff00;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 720.02617,452.36852 80.7091,-2.9e-4"
id="path951"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cccccc"
inkscape:connector-curvature="0"
id="rect953"
d="m 800.735,452.36823 2e-4,-14.93305 48.81998,0 0,87.51492 -48.81991,0 0,-14.31212"
style="fill:none;fill-opacity:1;stroke:#ffff00;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path958"
d="m 720.02617,510.63854 80.7091,-5.6e-4"
style="fill:none;fill-opacity:1;stroke:#ffff00;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
</g>
<path <path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 765.76075,790.62913 136.156,0" d="m 765.76075,790.62913 136.156,0"
@ -2781,7 +2759,7 @@
height="82.123947" height="82.123947"
width="178.44023" width="178.44023"
id="FMA_cat_box" id="FMA_cat_box"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:2.4;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:2.4000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<text <text
inkscape:label="#text983" inkscape:label="#text983"
xml:space="preserve" xml:space="preserve"
@ -2836,7 +2814,7 @@
height="84.557259" height="84.557259"
width="171.9402" width="171.9402"
id="FMA_flx_box" id="FMA_flx_box"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:2.4;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:2.4000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<text <text
transform="scale(0.87678235,1.1405339)" transform="scale(0.87678235,1.1405339)"
id="FMA_flxtemp" id="FMA_flxtemp"
@ -3034,13 +3012,6 @@
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" /> style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
</g> </g>
</g> </g>
<path
style="fill:none;fill-opacity:1;stroke:#1684a5;stroke-width:4;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 426.05644,897.87034 43.41526,10e-6 -21.70763,40.47717 z"
id="HDG_target"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc"
inkscape:label="#rect902" />
<path <path
sodipodi:nodetypes="cc" sodipodi:nodetypes="cc"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
@ -3199,4 +3170,234 @@
sodipodi:nodetypes="cc" /> sodipodi:nodetypes="cc" />
</g> </g>
</g> </g>
<g
id="HDG_scale"
inkscape:label="#g4743"
transform="translate(-104.78479,0)">
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 256.91925,944.75532 0,22.36203"
id="path4456-8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<text
inkscape:label="#text975"
transform="scale(0.95383278,1.0484018)"
id="HDG_one"
y="958.2016"
x="269.18036"
style="font-style:normal;font-weight:normal;font-size:30.52176857px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75"
xml:space="preserve"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke-width:0.75"
y="958.2016"
x="269.18036"
id="tspan4386-6"
sodipodi:role="line">00</tspan></text>
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4691"
d="m 651.08597,944.75532 0,22.36203"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:30.52176857px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75"
x="579.11359"
y="958.2016"
id="HDG_four"
transform="scale(0.95383278,1.0484018)"
inkscape:label="#text975"><tspan
sodipodi:role="line"
id="tspan4695"
x="579.11359"
y="958.2016"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke-width:0.75">00</tspan></text>
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4697"
d="m 306.19037,944.75532 0,12.35406"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4699"
d="m 355.46117,944.75532 0,22.36203"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 454.00277,944.75532 0,22.36203"
id="path4701"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 552.54437,944.75532 0,22.36203"
id="path4703"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:30.52176857px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75"
x="372.49115"
y="958.2016"
id="HDG_two"
transform="scale(0.95383278,1.0484018)"
inkscape:label="#text975"><tspan
sodipodi:role="line"
id="tspan4707"
x="372.49115"
y="958.2016"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke-width:0.75">00</tspan></text>
<text
inkscape:label="#text975"
transform="scale(0.95383278,1.0484018)"
id="HDG_three"
y="958.2016"
x="475.80234"
style="font-style:normal;font-weight:normal;font-size:30.52176857px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75"
xml:space="preserve"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke-width:0.75"
y="958.2016"
x="475.80234"
id="tspan4711"
sodipodi:role="line">00</tspan></text>
<text
inkscape:label="#text975"
transform="scale(0.95383278,1.0484018)"
id="HDG_five"
y="958.2016"
x="682.42474"
style="font-style:normal;font-weight:normal;font-size:30.52176857px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75"
xml:space="preserve"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke-width:0.75"
y="958.2016"
x="682.42474"
id="tspan4715"
sodipodi:role="line">00</tspan></text>
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 404.73197,944.75532 0,12.35406"
id="path4717"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4719"
d="m 503.27357,944.75532 0,12.35406"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 601.81517,944.75532 0,12.35406"
id="path4721"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 207.64877,944.75532 0,12.35406"
id="path4723"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 749.62718,944.75532 0,22.36203"
id="path4725"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:30.52176857px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75"
x="785.73553"
y="958.2016"
id="HDG_six"
transform="scale(0.95383278,1.0484018)"
inkscape:label="#text975"><tspan
sodipodi:role="line"
id="tspan4729"
x="785.73553"
y="958.2016"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke-width:0.75">00</tspan></text>
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4731"
d="m 700.35638,944.75532 0,12.35406"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4733"
d="m 848.16878,944.75532 0,22.36203"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
<text
inkscape:label="#text975"
transform="scale(0.95383278,1.0484018)"
id="HDG_seven"
y="958.2016"
x="889.04669"
style="font-style:normal;font-weight:normal;font-size:30.52176857px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75"
xml:space="preserve"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke-width:0.75"
y="958.2016"
x="889.04669"
id="tspan4737"
sodipodi:role="line">00</tspan></text>
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 798.89798,944.75532 0,12.35406"
id="path4739"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4741"
d="m 897.43958,944.75532 0,12.35406"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:3.19995403;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
</g>
<rect
style="fill:#c9d121;fill-opacity:1;stroke:none;stroke-width:4.64450645;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="HDG_pointer"
width="7.7972808"
height="58.119724"
x="443.85849"
y="902.20178"
inkscape:label="#rect4954" />
<path
style="fill:none;fill-opacity:1;stroke:#1684a5;stroke-width:4;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
d="m 426.05644,897.87034 43.41526,10e-6 -21.70763,40.47717 z"
id="HDG_target"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc"
inkscape:label="#rect902" />
<g
id="CRS_pointer"
inkscape:label="#g5019"
transform="matrix(1.0666667,0,0,1.066636,7.9500002,2.8086774)">
<rect
y="897.6875"
x="409.21875"
height="46.03125"
width="6.1875"
id="rect5013"
style="fill:#b055be;fill-opacity:1;stroke:none;stroke-width:2.79342866;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="matrix(0,1,-1,0,0,0)"
style="fill:#b055be;fill-opacity:1;stroke:none;stroke-width:2.19441199;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect5015"
width="6.1875"
height="28.40625"
x="929.98438"
y="-426.51562" />
</g>
<rect
inkscape:label="#rect4872"
transform="matrix(0.57965979,0.8148586,-0.57965979,0.8148586,0,0)"
y="194.07515"
x="966.534"
height="14.344484"
width="14.344484"
id="TRK_pointer"
style="fill:none;fill-opacity:1;stroke:#08b837;stroke-width:3.86463165;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 193 KiB

View file

@ -268,6 +268,7 @@ var lateral = func {
setprop("/it-autoflight/output/lat", 9); setprop("/it-autoflight/output/lat", 9);
setprop("/it-autoflight/mode/lat", " "); setprop("/it-autoflight/mode/lat", " ");
setprop("/it-autoflight/mode/arm", " "); setprop("/it-autoflight/mode/arm", " ");
setprop("/it-autoflight/custom/show-hdg", 1);
} }
} }

View file

@ -35,6 +35,7 @@ setprop("/modes/pfd/fma/roll-mode-armed-time", 0);
setprop("/modes/pfd/fma/ap-mode-time", 0); setprop("/modes/pfd/fma/ap-mode-time", 0);
setprop("/modes/pfd/fma/fd-mode-time", 0); setprop("/modes/pfd/fma/fd-mode-time", 0);
setprop("/modes/pfd/fma/athr-mode-time", 0); setprop("/modes/pfd/fma/athr-mode-time", 0);
setprop("/modes/fcu/hdg-time", 0);
setlistener("sim/signals/fdm-initialized", func { setlistener("sim/signals/fdm-initialized", func {
loopFMA.start(); loopFMA.start();
@ -141,52 +142,59 @@ var loopFMA = maketimer(0.05, func {
} }
# Boxes # Boxes
var boxtime = getprop("/sim/time/elapsed-sec"); var elapsedtime = getprop("/sim/time/elapsed-sec");
if (getprop("/modes/pfd/fma/ap-mode-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/ap-mode-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/ap-mode-box", 1); setprop("/modes/pfd/fma/ap-mode-box", 1);
} else { } else {
setprop("/modes/pfd/fma/ap-mode-box", 0); setprop("/modes/pfd/fma/ap-mode-box", 0);
} }
if (getprop("/modes/pfd/fma/fd-mode-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/fd-mode-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/fd-mode-box", 1); setprop("/modes/pfd/fma/fd-mode-box", 1);
} else { } else {
setprop("/modes/pfd/fma/fd-mode-box", 0); setprop("/modes/pfd/fma/fd-mode-box", 0);
} }
if (getprop("/modes/pfd/fma/athr-mode-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/athr-mode-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/athr-mode-box", 1); setprop("/modes/pfd/fma/athr-mode-box", 1);
} else { } else {
setprop("/modes/pfd/fma/athr-mode-box", 0); setprop("/modes/pfd/fma/athr-mode-box", 0);
} }
if (getprop("/modes/pfd/fma/throttle-mode-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/throttle-mode-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/throttle-mode-box", 1); setprop("/modes/pfd/fma/throttle-mode-box", 1);
} else { } else {
setprop("/modes/pfd/fma/throttle-mode-box", 0); setprop("/modes/pfd/fma/throttle-mode-box", 0);
} }
if (getprop("/modes/pfd/fma/roll-mode-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/roll-mode-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/roll-mode-box", 1); setprop("/modes/pfd/fma/roll-mode-box", 1);
} else { } else {
setprop("/modes/pfd/fma/roll-mode-box", 0); setprop("/modes/pfd/fma/roll-mode-box", 0);
} }
if (getprop("/modes/pfd/fma/pitch-mode-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/pitch-mode-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/pitch-mode-box", 1); setprop("/modes/pfd/fma/pitch-mode-box", 1);
} else { } else {
setprop("/modes/pfd/fma/pitch-mode-box", 0); setprop("/modes/pfd/fma/pitch-mode-box", 0);
} }
if (getprop("/modes/pfd/fma/roll-mode-armed-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/roll-mode-armed-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/roll-mode-armed-box", 1); setprop("/modes/pfd/fma/roll-mode-armed-box", 1);
} else { } else {
setprop("/modes/pfd/fma/roll-mode-armed-box", 0); setprop("/modes/pfd/fma/roll-mode-armed-box", 0);
} }
if (getprop("/modes/pfd/fma/pitch-mode-armed-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/pitch-mode-armed-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/pitch-mode-armed-box", 1); setprop("/modes/pfd/fma/pitch-mode-armed-box", 1);
} else { } else {
setprop("/modes/pfd/fma/pitch-mode-armed-box", 0); setprop("/modes/pfd/fma/pitch-mode-armed-box", 0);
} }
if (getprop("/modes/pfd/fma/pitch-mode2-armed-time") + 10 >= boxtime) { if (getprop("/modes/pfd/fma/pitch-mode2-armed-time") + 10 >= elapsedtime) {
setprop("/modes/pfd/fma/pitch-mode2-armed-box", 1); setprop("/modes/pfd/fma/pitch-mode2-armed-box", 1);
} else { } else {
setprop("/modes/pfd/fma/pitch-mode2-armed-box", 0); setprop("/modes/pfd/fma/pitch-mode2-armed-box", 0);
} }
# Preselect HDG
if (getprop("/modes/fcu/hdg-time") + 10 >= elapsedtime) {
setprop("/it-autoflight/custom/show-hdg", 1);
} else if (getprop("/it-autoflight/output/lat") != 0 and getprop("/it-autoflight/output/lat") != 5 and getprop("/it-autoflight/output/lat") != 9) {
setprop("/it-autoflight/custom/show-hdg", 0);
}
}); });
var loopFMA_b = func { var loopFMA_b = func {

View file

@ -48,6 +48,7 @@ var variousReset = func {
setprop("/controls/lighting/DU/du4", 1); setprop("/controls/lighting/DU/du4", 1);
setprop("/controls/lighting/DU/du5", 1); setprop("/controls/lighting/DU/du5", 1);
setprop("/controls/lighting/DU/du6", 1); setprop("/controls/lighting/DU/du6", 1);
setprop("/modes/fcu/hdg-time", 0);
} }
setlistener("/sim/signals/fdm-initialized", func { setlistener("/sim/signals/fdm-initialized", func {
@ -145,19 +146,6 @@ var CVR_master = func {
} }
} }
#setlistener("/it-autoflight/input/spd-kts", func {
# if (getprop("/it-autoflight/input/spd-kts") < getprop("/FMGC/internal/alpha-prot-speed")) {
# setprop("/it-autoflight/input/spd-kts", getprop("/FMGC/internal/alpha-prot-speed"));
# }
#});
#setlistener("/it-autoflight/input/spd-mach", func {
# var alphaProtMach = (getprop("/instrumentation/airspeed-indicator/indicated-mach") / getprop("/instrumentation/airspeed-indicator/indicated-speed-kt") * getprop("/FMGC/internal/alpha-prot-speed"));
# if (getprop("/it-autoflight/input/spd-mach") < alphaProtMach) {
# setprop("/it-autoflight/input/spd-mach", alphaProtMach);
# }
#});
var mcpSPDKnbPull = func { var mcpSPDKnbPull = func {
setprop("/it-autoflight/input/spd-managed", 0); setprop("/it-autoflight/input/spd-managed", 0);
fmgc.ManagedSPD.stop(); fmgc.ManagedSPD.stop();
@ -192,35 +180,31 @@ var mcpSPDKnbPush = func {
} }
var mcpHDGKnbPull = func { var mcpHDGKnbPull = func {
var latmode = getprop("/it-autoflight/output/lat"); if (getprop("/it-autoflight/output/fd1") == 1 or getprop("/it-autoflight/output/fd2") == 1 or getprop("/it-autoflight/output/ap1") == 1 or getprop("/it-autoflight/output/ap2") == 1) {
var showhdg = getprop("/it-autoflight/custom/show-hdg"); var latmode = getprop("/it-autoflight/output/lat");
if (latmode == 0 or showhdg == 0) { var showhdg = getprop("/it-autoflight/custom/show-hdg");
setprop("/it-autoflight/input/lat", 3); if (latmode == 0 or showhdg == 0) {
setprop("/it-autoflight/custom/show-hdg", 1); setprop("/it-autoflight/input/lat", 3);
} else { setprop("/it-autoflight/custom/show-hdg", 1);
setprop("/it-autoflight/input/lat", 0); } else {
setprop("/it-autoflight/custom/show-hdg", 1); setprop("/it-autoflight/input/lat", 0);
setprop("/it-autoflight/custom/show-hdg", 1);
}
} }
} }
var mcpHDGKnbPush = func {
setprop("/it-autoflight/input/lat", 1);
}
var hdgInput = func { var hdgInput = func {
var latmode = getprop("/it-autoflight/output/lat"); var latmode = getprop("/it-autoflight/output/lat");
if (latmode != 0) { if (latmode != 0) {
setprop("/it-autoflight/custom/show-hdg", 1); setprop("/it-autoflight/custom/show-hdg", 1);
var hdgnow = getprop("/it-autoflight/input/hdg"); var hdgnow = getprop("/it-autoflight/input/hdg");
settimer(func { setprop("/modes/fcu/hdg-time", getprop("/sim/time/elapsed-sec"));
var hdgnew = getprop("/it-autoflight/input/hdg"); }
var showhdg = getprop("/it-autoflight/custom/show-hdg"); }
if (hdgnow == hdgnew and latmode != 5 and showhdg == 1) {
settimer(func { var mcpHDGKnbPush = func {
setprop("/it-autoflight/custom/show-hdg", 0); if (getprop("/it-autoflight/output/fd1") == 1 or getprop("/it-autoflight/output/fd2") == 1 or getprop("/it-autoflight/output/ap1") == 1 or getprop("/it-autoflight/output/ap2") == 1) {
}, 10); setprop("/it-autoflight/input/lat", 1);
}
}, 2);
} }
} }

View file

@ -66,12 +66,6 @@
</input> </input>
<reference>0</reference> <reference>0</reference>
<output>instrumentation/pfd/heading-deg</output> <output>instrumentation/pfd/heading-deg</output>
<enable>
<equals>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
</enable>
</filter> </filter>
<filter> <filter>
@ -90,12 +84,6 @@
</input> </input>
<reference>0</reference> <reference>0</reference>
<output>instrumentation/pfd/track-deg</output> <output>instrumentation/pfd/track-deg</output>
<enable>
<equals>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
</enable>
</filter> </filter>
<filter> <filter>
@ -116,12 +104,6 @@
<property>instrumentation/pfd/heading-deg</property> <property>instrumentation/pfd/heading-deg</property>
</reference> </reference>
<output>instrumentation/pfd/track-diff</output> <output>instrumentation/pfd/track-diff</output>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</enable>
</filter> </filter>
<filter> <filter>
@ -148,15 +130,8 @@
<min>-180.0</min> <min>-180.0</min>
<max>180.0</max> <max>180.0</max>
</period> </period>
<enable>
<equals>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
</enable>
</filter> </filter>
<filter> <filter>
<name>Localizer course diff</name> <name>Localizer course diff</name>
<type>gain</type> <type>gain</type>