From 2eb8798548c2ae7c61c929bb07a7e945d332598c Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 7 Nov 2017 13:09:29 -0500 Subject: [PATCH] A32X: Fix AGL Alt not rotating on Canvas PFD --- A320-main.xml | 2 +- Models/Instruments/PFD-WIP/PFD.nas | 4 ++- Models/Instruments/PFD-WIP/res/pfd.svg | 38 +++++++++++++++----------- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/A320-main.xml b/A320-main.xml index 0ef66712..32c3ffda 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -10,7 +10,7 @@ - it0uchpods Design Group: Joshua Davidson (it0uchpods), Jonathan Redpath (legoboyvdlp), Charlie Schwehm (Wecsje), J Maverick 16, Thorsten Herrmann (TH-555) + it0uchpods Design Group: Joshua Davidson (it0uchpods), Jonathan Redpath (legoboyvdlp), Thorsten Herrmann (TH-555) Pre V1.0 diff --git a/Models/Instruments/PFD-WIP/PFD.nas b/Models/Instruments/PFD-WIP/PFD.nas index e6c75edd..95f0e307 100644 --- a/Models/Instruments/PFD-WIP/PFD.nas +++ b/Models/Instruments/PFD-WIP/PFD.nas @@ -114,7 +114,7 @@ var canvas_PFD_1 = { 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", "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"]; }, update: func() { @@ -431,6 +431,8 @@ var canvas_PFD_1 = { me["AI_agl"].hide(); } + me["AI_agl_g"].setRotation(-roll * D2R); + # Altitude 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)); diff --git a/Models/Instruments/PFD-WIP/res/pfd.svg b/Models/Instruments/PFD-WIP/res/pfd.svg index 9530ae86..74861d32 100644 --- a/Models/Instruments/PFD-WIP/res/pfd.svg +++ b/Models/Instruments/PFD-WIP/res/pfd.svg @@ -41,9 +41,9 @@ inkscape:window-height="1030" id="namedview371" showgrid="false" - inkscape:zoom="1.4142136" - inkscape:cx="949.68918" - inkscape:cy="635.21338" + inkscape:zoom="4" + inkscape:cx="630.07835" + inkscape:cy="656.19794" inkscape:window-x="1592" inkscape:window-y="-8" inkscape:window-maximized="1" @@ -2391,7 +2391,7 @@ + inkscape:transform-center-y="-246.1722"> STD - + 0000 + y="680.72845" + id="AI_agl" + transform="scale(0.87678236,1.1405339)">0000 +