From 2b6cec6d25a5e9c59abd7b9a26c800085d87d601 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 13 Jun 2017 15:48:28 -0400 Subject: [PATCH] A3XX: Add Managed Altitude Target to PFD --- Models/Instruments/PFD/PFD1.xml | 189 ++++++++++++++++++++++++--- Models/Instruments/PFD/PFD2.xml | 189 ++++++++++++++++++++++++--- Models/Instruments/PFD/res/pfd-3d.ac | 21 ++- Systems/pfd.xml | 14 ++ 4 files changed, 376 insertions(+), 37 deletions(-) diff --git a/Models/Instruments/PFD/PFD1.xml b/Models/Instruments/PFD/PFD1.xml index 62c96092..c43a77eb 100644 --- a/Models/Instruments/PFD/PFD1.xml +++ b/Models/Instruments/PFD/PFD1.xml @@ -2733,19 +2733,73 @@ + + mng-alt + + 0.0010 + 0.0553 + 0.0462 + + right-center + yz-plane + text-value + %s + /it-autoflight/internal/alt + false + helvetica_bold.txf + true + false + false + 0.006 + + 32 + 32 + + + + + mng-alt-lower + + 0.0010 + 0.0553 + -0.0462 + + right-center + yz-plane + text-value + %s + /it-autoflight/internal/alt + false + helvetica_bold.txf + true + false + false + 0.006 + + 32 + 32 + + + select man-alt - - - - /it-autoflight/internal/alt - /instrumentation/altimeter/indicated-altitude-ft - - - 4300 - + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + 4300 + + + /it-autoflight/output/vert + 8 + + @@ -2753,15 +2807,65 @@ select man-alt-lower - - - - /it-autoflight/internal/alt - /instrumentation/altimeter/indicated-altitude-ft - - - -4300 - + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + -4300 + + + /it-autoflight/output/vert + 8 + + + + + + + select + mng-alt + + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + 4300 + + + /it-autoflight/output/vert + 8 + + + + + + + select + mng-alt-lower + + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + -4300 + + + /it-autoflight/output/vert + 8 + + @@ -2790,6 +2894,53 @@ + + texmultiple + target-alt-mng + + textranslate + /it-autoflight/internal/mng-alt + 0.000019141 + + -1 + 0 + 0 + + + + textranslate + /instrumentation/altimeter/indicated-altitude-ft + 0.000019141 + + 1 + 0 + 0 + + + + + + select + target-alt-sel + + + /it-autoflight/output/vert + 8 + + + + + + select + target-alt-mng + + + /it-autoflight/output/vert + 8 + + + + @@ -3135,6 +3286,8 @@ mng-spd-lower mng-mach mng-mach-lower + mng-alt + mng-alt-lower 1 0 diff --git a/Models/Instruments/PFD/PFD2.xml b/Models/Instruments/PFD/PFD2.xml index 1280612a..895b3c73 100644 --- a/Models/Instruments/PFD/PFD2.xml +++ b/Models/Instruments/PFD/PFD2.xml @@ -2733,19 +2733,73 @@ + + mng-alt + + 0.0010 + 0.0553 + 0.0462 + + right-center + yz-plane + text-value + %s + /it-autoflight/internal/alt + false + helvetica_bold.txf + true + false + false + 0.006 + + 32 + 32 + + + + + mng-alt-lower + + 0.0010 + 0.0553 + -0.0462 + + right-center + yz-plane + text-value + %s + /it-autoflight/internal/alt + false + helvetica_bold.txf + true + false + false + 0.006 + + 32 + 32 + + + select man-alt - - - - /it-autoflight/internal/alt - /instrumentation/altimeter/indicated-altitude-ft - - - 4300 - + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + 4300 + + + /it-autoflight/output/vert + 8 + + @@ -2753,15 +2807,65 @@ select man-alt-lower - - - - /it-autoflight/internal/alt - /instrumentation/altimeter/indicated-altitude-ft - - - -4300 - + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + -4300 + + + /it-autoflight/output/vert + 8 + + + + + + + select + mng-alt + + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + 4300 + + + /it-autoflight/output/vert + 8 + + + + + + + select + mng-alt-lower + + + + + + /it-autoflight/internal/alt + /instrumentation/altimeter/indicated-altitude-ft + + + -4300 + + + /it-autoflight/output/vert + 8 + + @@ -2790,6 +2894,53 @@ + + texmultiple + target-alt-mng + + textranslate + /it-autoflight/internal/mng-alt + 0.000019141 + + -1 + 0 + 0 + + + + textranslate + /instrumentation/altimeter/indicated-altitude-ft + 0.000019141 + + 1 + 0 + 0 + + + + + + select + target-alt-sel + + + /it-autoflight/output/vert + 8 + + + + + + select + target-alt-mng + + + /it-autoflight/output/vert + 8 + + + + @@ -3135,6 +3286,8 @@ mng-spd-lower mng-mach mng-mach-lower + mng-alt + mng-alt-lower 1 0 diff --git a/Models/Instruments/PFD/res/pfd-3d.ac b/Models/Instruments/PFD/res/pfd-3d.ac index 3f95da9f..9d986582 100644 --- a/Models/Instruments/PFD/res/pfd-3d.ac +++ b/Models/Instruments/PFD/res/pfd-3d.ac @@ -2,7 +2,26 @@ AC3Db MATERIAL "ac3dmat1" rgb 1 1 1 amb 0 0 0 emis 0.658824 0.670588 0.67451 spec 0 0 0 shi 128 trans 0 MATERIAL "white" rgb 1 1 1 amb 1 1 1 emis 0.798 0.798 0.798 spec 0 0 0 shi 0 trans 0 OBJECT world -kids 43 +kids 44 +OBJECT poly +name "target-alt-mng" +loc 0.000960576 -0.000264099 -0.0431903 +texture "trgt-alt-mng.png" +crease 45.000000 +numvert 4 +0 0.0428304 -0.00623311 +0 0.0428304 0.00772078 +0 -0.0428304 0.00772078 +0 -0.0428304 -0.00623311 +numsurf 1 +SURF 0x30 +mat 0 +refs 4 +0 0.990386 0.217208 +1 0.022378 0.217208 +2 0.0223766 0.0507198 +3 0.990386 0.0507198 +kids 0 OBJECT poly name "ap-mode-box" loc 0.000380651 0.0723146 -0.0618702 diff --git a/Systems/pfd.xml b/Systems/pfd.xml index eab139c3..5b429c98 100644 --- a/Systems/pfd.xml +++ b/Systems/pfd.xml @@ -28,6 +28,20 @@ instrumentation/pfd/sel-alt-diff + + + Target alt diff (managed) + gain + 0.05 + 1.0 + + /it-autoflight/internal/mng-alt + + + instrumentation/altimeter/indicated-altitude-ft + + instrumentation/pfd/mng-alt-diff + Heading Deg