external power and apu ELEC ECAM

This commit is contained in:
Jonathan Redpath 2017-05-05 16:34:52 +01:00
parent 33499bc0c5
commit 224099f3f7
6 changed files with 194 additions and 8 deletions

View file

@ -293,7 +293,7 @@
<blue>0</blue>
</color>
<font>helvetica_bold</font>
<point-size>11</point-size>
<point-size>10</point-size>
<chunks>
<chunk>
<type>number-value</type>
@ -304,7 +304,7 @@
<transformations>
<transformation>
<type>y-shift</type>
<offset>-66</offset>
<offset>-58</offset>
</transformation>
<transformation>
<type>x-shift</type>
@ -312,13 +312,58 @@
</transformation>
</transformations>
<condition>
<and>
<equals>
<property>/controls/electrical/switches/gen-apu</property>
<value>1</value>
</equals>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>0</value>
</equals>
</and>
</condition>
</layer>
<layer>
<type>text</type>
<name>APU-H</name>
<color>
<red>0</red>
<green>1.0</green>
<blue>0</blue>
</color>
<font>helvetica_bold</font>
<point-size>10</point-size>
<chunks>
<chunk>
<type>number-value</type>
<property>/systems/electrical/extra/apu-hz</property>
<format type="string">%3.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-67</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>-24</offset>
</transformation>
</transformations>
<condition>
<and>
<equals>
<property>/controls/electrical/switches/gen-apu</property>
<value>1</value>
</equals>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>0</value>
</equals>
</and>
</condition>
</layer>
<layer>
<type>text</type>
@ -329,24 +374,116 @@
<blue>0</blue>
</color>
<font>helvetica_bold</font>
<point-size>11</point-size>
<point-size>10</point-size>
<chunks>
<chunk>
<type>number-value</type>
<property>/systems/electrical/extra/ext-volts</property><!-- There is no TAT temperature property-->
<property>/systems/electrical/extra/ext-volts</property>
<format type="string">%3.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-54</offset>
<offset>-53</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>37</offset>
<offset>32</offset>
</transformation>
</transformations>
<condition>
<and>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>1</value>
</equals>
<equals>
<property>/controls/switches/cart</property>
<value>1</value>
</equals>
</and>
</condition>
</layer>
<layer>
<type>text</type>
<name>EXT-V</name>
<color>
<red>0</red>
<green>1.0</green>
<blue>0</blue>
</color>
<font>helvetica_bold</font>
<point-size>10</point-size>
<chunks>
<chunk>
<type>number-value</type>
<property>/systems/electrical/extra/ext-volts</property>
<format type="string">%3.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-53</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>32</offset>
</transformation>
</transformations>
<condition>
<and>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>1</value>
</equals>
<equals>
<property>/controls/switches/cart</property>
<value>1</value>
</equals>
</and>
</condition>
</layer>
<layer>
<type>text</type>
<name>EXT-H</name>
<color>
<red>0</red>
<green>1.0</green>
<blue>0</blue>
</color>
<font>helvetica_bold</font>
<point-size>10</point-size>
<chunks>
<chunk>
<type>number-value</type>
<property>/systems/electrical/extra/ext-hz</property>
<format type="string">%3.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-63</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>32</offset>
</transformation>
</transformations>
<condition>
<and>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>1</value>
</equals>
<equals>
<property>/controls/switches/cart</property>
<value>1</value>
</equals>
</and>
</condition>
</layer>
<layer>
<name>apugen</name>
@ -376,6 +513,10 @@
<property>/controls/APU/master</property>
<value>1</value>
</equals>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>0</value>
</equals>
</and>
</condition>
</layer>
@ -398,11 +539,46 @@
</transformation>
</transformations>
<condition>
<and>
<or>
<equals>
<property>/controls/APU/master</property>
<value>0</value>
</equals>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>1</value>
</equals>
</or>
</condition>
</layer>
<layer>
<name>noextpwr</name>
<emissive>true</emissive>
<w>55</w>
<h>38</h>
<texture>
<path>Aircraft/A320Family/Models/Instruments/ECAM/res/elec-extpwroff.png</path>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-50</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>44</offset>
</transformation>
</transformations>
<condition>
<and>
<equals>
<property>/controls/electrical/switches/gen-ext</property>
<value>0</value>
</equals>
<equals>
<property>/controls/switches/cart</property>
<value>0</value>
</equals>
</and>
</condition>
</layer>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -40,6 +40,8 @@ var elec_init = func {
setprop("/systems/electrical/bus/ac-ess", 0);
setprop("/systems/electrical/extra/ext-volts", 0);
setprop("/systems/electrical/extra/apu-volts", 0);
setprop("/systems/electrical/extra/ext-hz", 0);
setprop("/systems/electrical/extra/apu-hz", 0);
setprop("systems/electrical/on", 0);
setprop("/controls/electrical/xtie/xtieL", 0);
setprop("/controls/electrical/xtie/xtieR", 0);
@ -134,6 +136,7 @@ var master_elec = func {
setprop("/systems/electrical/bus/ac1", ac_volt_std);
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
setprop("/systems/electrical/extra/ext-volts", ac_volt_std);
setprop("/systems/electrical/extra/ext-hz", ac_volt_std);
setprop("/systems/electrical/bus/dc1", dc_volt_std);
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
setprop("/systems/electrical/bus/dc1-amps", dc_amps_std);
@ -141,6 +144,7 @@ var master_elec = func {
setprop("/systems/electrical/bus/ac1", ac_volt_std);
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
setprop("/systems/electrical/extra/apu-volts", ac_volt_std);
setprop("/systems/electrical/extra/apu-hz", ac_volt_std);
setprop("/systems/electrical/bus/dc1", dc_volt_std);
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
setprop("/systems/electrical/bus/dc1-amps", dc_amps_std);
@ -160,6 +164,8 @@ var master_elec = func {
setprop("/systems/electrical/bus/ac1", 0);
setprop("/systems/electrical/extra/ext-volts", 0);
setprop("/systems/electrical/extra/apu-volts", 0);
setprop("/systems/electrical/extra/ext-hz", 0);
setprop("/systems/electrical/extra/apu-hz", 0);
if (getprop("/systems/electrical/bus/ac2") == 0) {
setprop("/systems/electrical/bus/ac-ess", 0);
}
@ -175,6 +181,7 @@ var master_elec = func {
setprop("/systems/electrical/bus/ac2", ac_volt_std);
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
setprop("/systems/electrical/extra/ext-volts", ac_volt_std);
setprop("/systems/electrical/extra/ext-hz", ac_hz_std);
setprop("/systems/electrical/bus/dc2", dc_volt_std);
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
setprop("/systems/electrical/bus/dc2-amps", dc_amps_std);
@ -182,6 +189,7 @@ var master_elec = func {
setprop("/systems/electrical/bus/ac2", ac_volt_std);
setprop("/systems/electrical/bus/ac-ess", ac_volt_std);
setprop("/systems/electrical/extra/apu-volts", ac_volt_std);
setprop("/systems/electrical/extra/apu-hz", ac_hz_std);
setprop("/systems/electrical/bus/dc2", dc_volt_std);
setprop("/systems/electrical/bus/dc-ess", dc_volt_std);
setprop("/systems/electrical/bus/dc2-amps", dc_amps_std);
@ -201,6 +209,8 @@ var master_elec = func {
setprop("/systems/electrical/bus/ac2", 0);
setprop("/systems/electrical/extra/ext-volts", 0);
setprop("/systems/electrical/extra/apu-volts", 0);
setprop("/systems/electrical/extra/ext-hz", 0);
setprop("/systems/electrical/extra/apu-hz", 0);
if (getprop("/systems/electrical/bus/ac1") == 0) {
setprop("/systems/electrical/bus/ac-ess", 0);
}