A32X: Fix AGL Alt not rotating on Canvas PFD

This commit is contained in:
Joshua Davidson 2017-11-07 13:09:29 -05:00
parent 39de560e77
commit 2eb8798548
3 changed files with 26 additions and 18 deletions
A320-main.xml
Models/Instruments/PFD-WIP

View file

@ -10,7 +10,7 @@
<sim> <sim>
<author>it0uchpods Design Group: Joshua Davidson (it0uchpods), Jonathan Redpath (legoboyvdlp), Charlie Schwehm (Wecsje), J Maverick 16, Thorsten Herrmann (TH-555)</author> <author>it0uchpods Design Group: Joshua Davidson (it0uchpods), Jonathan Redpath (legoboyvdlp), Thorsten Herrmann (TH-555)</author>
<status>Pre V1.0</status> <status>Pre V1.0</status>

View file

@ -114,7 +114,7 @@ var canvas_PFD_1 = {
getKeys: func() { getKeys: func() {
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_agl","FD_roll","FD_pitch","ALT_digits","ALT_tens","VS_pointer", "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_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"]; "VS_box","VS_digit","QNH","QNH_setting","QNH_std","QNH_box","LOC_pointer","LOC_scale","GS_scale","GS_pointer","HDG_target"];
}, },
update: func() { update: func() {
@ -431,6 +431,8 @@ var canvas_PFD_1 = {
me["AI_agl"].hide(); me["AI_agl"].hide();
} }
me["AI_agl_g"].setRotation(-roll * D2R);
# Altitude # Altitude
me["ALT_digits"].setText(sprintf("%s", getprop("/instrumentation/altimeter/indicated-altitude-ft-pfd"))); me["ALT_digits"].setText(sprintf("%s", getprop("/instrumentation/altimeter/indicated-altitude-ft-pfd")));
altTens = num(right(sprintf("%02d", getprop("/instrumentation/altimeter/indicated-altitude-ft")), 2)); altTens = num(right(sprintf("%02d", getprop("/instrumentation/altimeter/indicated-altitude-ft")), 2));

View file

@ -41,9 +41,9 @@
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="949.68918" inkscape:cx="630.07835"
inkscape:cy="635.21338" inkscape:cy="656.19794"
inkscape:window-x="1592" inkscape:window-x="1592"
inkscape:window-y="-8" inkscape:window-y="-8"
inkscape:window-maximized="1" inkscape:window-maximized="1"
@ -2391,7 +2391,7 @@
<g <g
id="AI_bank" id="AI_bank"
inkscape:label="#g4313" inkscape:label="#g4313"
inkscape:transform-center-y="-246.30033"> inkscape:transform-center-y="-246.1722">
<path <path
inkscape:transform-center-y="-258.88333" inkscape:transform-center-y="-258.88333"
inkscape:label="#path905" inkscape:label="#path905"
@ -3042,17 +3042,23 @@
x="907.61713" x="907.61713"
id="tspan977" id="tspan977"
sodipodi:role="line">STD</tspan></text> sodipodi:role="line">STD</tspan></text>
<text <g
transform="scale(0.87678236,1.1405339)" id="AI_agl_g"
id="AI_agl" inkscape:transform-center-y="245.55742"
y="680.72845" inkscape:label="#g4612">
x="511.25748" <text
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:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.65757734" inkscape:transform-center-y="245.55937"
xml:space="preserve" inkscape:label="#text983"
inkscape:label="#text983"><tspan xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:45px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#0dc04b;fill-opacity:1;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:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.65757734"
y="680.72845"
x="511.25748" x="511.25748"
id="tspan4624" y="680.72845"
sodipodi:role="line">0000</tspan></text> id="AI_agl"
transform="scale(0.87678236,1.1405339)"><tspan
sodipodi:role="line"
id="tspan4624"
x="511.25748"
y="680.72845"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:45px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#0dc04b;fill-opacity:1;stroke-width:0.65757734">0000</tspan></text>
</g>
</svg> </svg>

Before

(image error) Size: 174 KiB

After

(image error) Size: 174 KiB