fix APU spinup time and add generator lines. Varios improvements
This commit is contained in:
parent
3e15565b75
commit
d55243f688
5 changed files with 63 additions and 4 deletions
|
@ -712,7 +712,6 @@
|
||||||
</or>
|
</or>
|
||||||
</condition>
|
</condition>
|
||||||
</layer>
|
</layer>
|
||||||
|
|
||||||
<layer>
|
<layer>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
<name>TR1-volts</name>
|
<name>TR1-volts</name>
|
||||||
|
@ -830,6 +829,56 @@
|
||||||
</transformations>
|
</transformations>
|
||||||
<!-- TRs simply show 0V and 0A, no conditions -->
|
<!-- TRs simply show 0V and 0A, no conditions -->
|
||||||
</layer>
|
</layer>
|
||||||
|
<layer>
|
||||||
|
<name>gen1off</name>
|
||||||
|
<emissive>true</emissive>
|
||||||
|
<w>2</w>
|
||||||
|
<h>10</h>
|
||||||
|
<texture>
|
||||||
|
<path>Aircraft/A320Family/Models/Instruments/ECAM/res/elec-gen-green-line.png</path>
|
||||||
|
</texture>
|
||||||
|
<transformations>
|
||||||
|
<transformation>
|
||||||
|
<type>y-shift</type>
|
||||||
|
<offset>-16</offset>
|
||||||
|
</transformation>
|
||||||
|
<transformation>
|
||||||
|
<type>x-shift</type>
|
||||||
|
<offset>-100</offset>
|
||||||
|
</transformation>
|
||||||
|
</transformations>
|
||||||
|
<condition>
|
||||||
|
<equals>
|
||||||
|
<property>/controls/electrical/switches/gen1</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
</condition>
|
||||||
|
</layer>
|
||||||
|
<layer>
|
||||||
|
<name>gen2off</name>
|
||||||
|
<emissive>true</emissive>
|
||||||
|
<w>2</w>
|
||||||
|
<h>10</h>
|
||||||
|
<texture>
|
||||||
|
<path>Aircraft/A320Family/Models/Instruments/ECAM/res/elec-gen-green-line.png</path>
|
||||||
|
</texture>
|
||||||
|
<transformations>
|
||||||
|
<transformation>
|
||||||
|
<type>y-shift</type>
|
||||||
|
<offset>-16</offset>
|
||||||
|
</transformation>
|
||||||
|
<transformation>
|
||||||
|
<type>x-shift</type>
|
||||||
|
<offset>101</offset>
|
||||||
|
</transformation>
|
||||||
|
</transformations>
|
||||||
|
<condition>
|
||||||
|
<equals>
|
||||||
|
<property>/controls/electrical/switches/gen2</property>
|
||||||
|
<value>1</value>
|
||||||
|
</equals>
|
||||||
|
</condition>
|
||||||
|
</layer>
|
||||||
<!-- ################################## Bottom #################################-->
|
<!-- ################################## Bottom #################################-->
|
||||||
|
|
||||||
<layer>
|
<layer>
|
||||||
|
|
BIN
Models/Instruments/ECAM/res/elec-gen-green-line.png
Normal file
BIN
Models/Instruments/ECAM/res/elec-gen-green-line.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 138 B |
Binary file not shown.
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
@ -111,6 +111,7 @@ var master_elec = func {
|
||||||
var dc_ess = getprop("/systems/electrical/bus/dc-ess");
|
var dc_ess = getprop("/systems/electrical/bus/dc-ess");
|
||||||
var gen_1_volts = getprop("/systems/electrical/extra/gen1-volts");
|
var gen_1_volts = getprop("/systems/electrical/extra/gen1-volts");
|
||||||
var gen_2_volts = getprop("/systems/electrical/extra/gen1-volts");
|
var gen_2_volts = getprop("/systems/electrical/extra/gen1-volts");
|
||||||
|
var galley_shed = getprop("/systems/electrical/extra/galleyshed");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -235,15 +236,22 @@ var master_elec = func {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ac_ess >= 100) {
|
if (ac_ess >= 100) {
|
||||||
if (galley_sw == 1) {
|
if (galley_sw == 1 and !galley_shed) {
|
||||||
setprop("/systems/electrical/bus/galley", ac_volt_std);
|
setprop("/systems/electrical/bus/galley", ac_volt_std);
|
||||||
} else if (galley_sw) {
|
} else if (galley_sw or galley_shed) {
|
||||||
setprop("/systems/electrical/bus/galley", 0);
|
setprop("/systems/electrical/bus/galley", 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setprop("/systems/electrical/bus/galley", 0);
|
setprop("/systems/electrical/bus/galley", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Galley Shedding Logic
|
||||||
|
if (!gen_apu_sw and !gen_ext_sw and (!gen1_sw or !gen2_sw)) { # this is when one of the generators is not working or turned off as it reads 0 V
|
||||||
|
setprop("/systems/electrical/extra/galleyshed", 1);
|
||||||
|
} else {
|
||||||
|
setprop("/systems/electrical/extra/galleyshed", 0);
|
||||||
|
}
|
||||||
|
|
||||||
# Battery Amps
|
# Battery Amps
|
||||||
if (battery1_sw) {
|
if (battery1_sw) {
|
||||||
setprop("/systems/electrical/battery1-amps", dc_amps_std);
|
setprop("/systems/electrical/battery1-amps", dc_amps_std);
|
||||||
|
|
|
@ -21,7 +21,8 @@ var n1_wm = 0;
|
||||||
var n2_wm = 0;
|
var n2_wm = 0;
|
||||||
var apu_max = 99.8;
|
var apu_max = 99.8;
|
||||||
var apu_egt_max = 513;
|
var apu_egt_max = 513;
|
||||||
var spinup_time = 15;
|
var spinup_time = 49; # Measured from youtube video
|
||||||
|
# For future, APU FLAP also takes 15 extra seconds to open before startup
|
||||||
var start_time = 10;
|
var start_time = 10;
|
||||||
var egt_lightup_time = 2;
|
var egt_lightup_time = 2;
|
||||||
var egt_lightdn_time = 8;
|
var egt_lightdn_time = 8;
|
||||||
|
@ -157,6 +158,7 @@ setlistener("/controls/APU/start", func {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
############
|
############
|
||||||
# Stop APU #
|
# Stop APU #
|
||||||
############
|
############
|
||||||
|
|
Reference in a new issue