A3XX: Update PFD colors, Add STD to altimeter :)

This commit is contained in:
Joshua Davidson 2017-06-17 11:23:01 -04:00
parent cdfc8debd1
commit 2fee5ec802
11 changed files with 221 additions and 32 deletions

View file

@ -646,6 +646,8 @@
<modes>
<altimeter>
<inhg>0</inhg>
<std>0</std>
<oldqnh>29.92</oldqnh>
</altimeter>
<pfd>
<minimums-mode>DH</minimums-mode>

View file

@ -1364,10 +1364,16 @@
<type>select</type>
<object-name>qnh-inhg</object-name>
<condition>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
@ -1375,10 +1381,16 @@
<type>select</type>
<object-name>qnh-hpa</object-name>
<condition>
<equals>
<property>/modes/altimeter/inhg</property>
<value>0</value>
</equals>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>0</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
@ -1387,8 +1399,8 @@
<object-name>qnh-std</object-name>
<condition>
<equals>
<property>/modes/altimeter/inhg</property>
<value>2</value>
<property>/modes/altimeter/std</property>
<value>1</value>
</equals>
</condition>
</animation>
@ -1955,8 +1967,8 @@
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>/flight-management/text/qnh</property>
<format type="string">STD</format>
<property>autopilot/servicable</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
@ -2033,8 +2045,8 @@
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>/flight-management/text/qnh</property>
<format type="string">STD</format>
<property>autopilot/servicable</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
@ -2050,8 +2062,19 @@
<animation>
<type>pick</type>
<object-name>qnh-0.01</object-name>
<object-name>qnh-0.000</object-name>
<action>
<button>0</button>
<button>1</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.toggleSTD();
</script>
</binding>
</action>
<action>
<button>3</button>
<repeatable type="bool">true</repeatable>
<binding>
@ -2060,7 +2083,16 @@
setprop("/instrumentation/altimeter/setting-inhg", getprop("instrumentation/altimeter/setting-inhg") + 0.01);
</script>
<condition>
<property>modes/altimeter/inhg</property>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</binding>
<binding>
@ -2069,12 +2101,20 @@
setprop("/instrumentation/altimeter/setting-hpa", getprop("instrumentation/altimeter/setting-hpa") + 1.0);
</script>
<condition>
<not><property>modes/altimeter/inhg</property></not>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>0</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</binding>
</action>
<action>
<button>1</button>
<button>4</button>
<repeatable type="bool">true</repeatable>
<binding>
@ -2083,7 +2123,16 @@
setprop("/instrumentation/altimeter/setting-inhg", getprop("instrumentation/altimeter/setting-inhg") - 0.01);
</script>
<condition>
<property>modes/altimeter/inhg</property>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</binding>
<binding>
@ -2092,7 +2141,16 @@
setprop("/instrumentation/altimeter/setting-hpa", getprop("instrumentation/altimeter/setting-hpa") - 1.0);
</script>
<condition>
<not><property>modes/altimeter/inhg</property></not>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>0</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</binding>
</action>
@ -2101,6 +2159,7 @@
<animation>
<type>pick</type>
<object-name>qnh</object-name>
<object-name>qnh.001</object-name>
<action>
<button>0</button>
<button>1</button>

View file

@ -833,7 +833,7 @@
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">number-value</type>
<format type="string">%2.0f</format>
<format type="string">%4.0f</format>
<property>instrumentation/altimeter/setting-hpa</property>
<truncate type="bool">false</truncate>
<font type="string">helvetica_bold.txf</font>
@ -869,28 +869,84 @@
</font-resolution>
</text>
<text>
<name>std-indicator</name>
<offsets>
<x-m>0.0010</x-m>
<y-m>0.05</y-m>
<z-m>-0.055</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">literal</type>
<text>STD</text>
<font type="string">helvetica_bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<animation>
<type>select</type>
<object-name>qnh-indicator-inhg</object-name>
<condition>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>qnh-indicator-hpa</object-name>
<condition>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>0</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>qnh-indicator</object-name>
<condition>
<equals>
<property>/modes/altimeter/inhg</property>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>std-indicator</object-name>
<condition>
<equals>
<property>/modes/altimeter/std</property>
<value>1</value>
</equals>
</condition>
</animation>
<!-- Radio Altimeter shows only when under 10000 ft -->
<animation>
@ -3063,6 +3119,7 @@
<object-name>pitch-mode-armed-fma</object-name>
<object-name>pitch-mode-armed2-fma</object-name>
<object-name>athr-flexb-fma</object-name>
<object-name>std-indicator</object-name>
<diffuse>
<red>0</red>
<green>0.886</green>

View file

@ -833,7 +833,7 @@
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">number-value</type>
<format type="string">%2.0f</format>
<format type="string">%4.0f</format>
<property>instrumentation/altimeter/setting-hpa</property>
<truncate type="bool">false</truncate>
<font type="string">helvetica_bold.txf</font>
@ -869,28 +869,84 @@
</font-resolution>
</text>
<text>
<name>std-indicator</name>
<offsets>
<x-m>0.0010</x-m>
<y-m>0.05</y-m>
<z-m>-0.055</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">literal</type>
<text>STD</text>
<font type="string">helvetica_bold.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<animation>
<type>select</type>
<object-name>qnh-indicator-inhg</object-name>
<condition>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>1</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>qnh-indicator-hpa</object-name>
<condition>
<and>
<equals>
<property>/modes/altimeter/inhg</property>
<value>0</value>
</equals>
<equals>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>qnh-indicator</object-name>
<condition>
<equals>
<property>/modes/altimeter/inhg</property>
<property>/modes/altimeter/std</property>
<value>0</value>
</equals>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>std-indicator</object-name>
<condition>
<equals>
<property>/modes/altimeter/std</property>
<value>1</value>
</equals>
</condition>
</animation>
<!-- Radio Altimeter shows only when under 10000 ft -->
<animation>
@ -2768,7 +2824,7 @@
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<property>/it-autoflight/internal/alt-mng</property>
<property>/it-autoflight/internal/alt-mng</property>
<truncate type="bool">false</truncate>
<font type="string">helvetica_bold.txf</font>
<draw-text type="bool">true</draw-text>
@ -3063,6 +3119,7 @@
<object-name>pitch-mode-armed-fma</object-name>
<object-name>pitch-mode-armed2-fma</object-name>
<object-name>athr-flexb-fma</object-name>
<object-name>std-indicator</object-name>
<diffuse>
<red>0</red>
<green>0.886</green>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -373,3 +373,17 @@ var flaptimer = maketimer(0.5, func {
flaptimer.stop();
}
});
var toggleSTD = func {
var Std = getprop("/modes/altimeter/std");
if (Std == 1) {
var oldqnh = getprop("/modes/altimeter/oldqnh");
setprop("/instrumentation/altimeter/setting-inhg", oldqnh);
setprop("/modes/altimeter/std", 0);
} else if (Std == 0) {
var qnh = getprop("/instrumentation/altimeter/setting-inhg");
setprop("/modes/altimeter/oldqnh", qnh);
setprop("/instrumentation/altimeter/setting-inhg", 29.92);
setprop("/modes/altimeter/std", 1);
}
}