diff --git a/Models/Instruments/ECAM/page-apu.xml b/Models/Instruments/ECAM/page-apu.xml index 40a7cce4..351f5aac 100644 --- a/Models/Instruments/ECAM/page-apu.xml +++ b/Models/Instruments/ECAM/page-apu.xml @@ -159,7 +159,7 @@ number-value - /systems/electrical/suppliers/apu-v + /systems/electrical/extra/apu-volts %3.0f @@ -170,7 +170,7 @@ x-shift - -80 + -84 diff --git a/Models/Instruments/ECAM/page-elec.xml b/Models/Instruments/ECAM/page-elec.xml index a184f9a5..05aad23b 100644 --- a/Models/Instruments/ECAM/page-elec.xml +++ b/Models/Instruments/ECAM/page-elec.xml @@ -213,19 +213,10 @@ - - - - - - - - - text - GEN1 + GEN1-volts 0 1.0 @@ -236,7 +227,7 @@ number-value - /systems/electrical/suppliers/gen1-v + /systems/electrical/bus/ac1 %3.0f @@ -247,15 +238,21 @@ x-shift - -116 + -117 + + + /controls/electrical/switches/gen1 + 1 + + text - GEN2 + GEN2-volts 0 1.0 @@ -266,7 +263,7 @@ number-value - /systems/electrical/suppliers/gen2-v + /systems/electrical/bus/ac2 %3.0f @@ -277,13 +274,17 @@ x-shift - 92 + 91 + + + /controls/electrical/switches/gen2 + 1 + + - - text APU-V @@ -296,7 +297,7 @@ number-value - /systems/electrical/suppliers/apu-v + /systems/electrical/extra/apu-volts %3.0f @@ -310,6 +311,12 @@ -24 + + + /controls/electrical/switches/gen-apu + 1 + + @@ -326,7 +333,7 @@ number-value - /systems/electrical/suppliers/ext-power-v + /systems/electrical/extra/ext-volts %3.0f @@ -341,6 +348,64 @@ + + apugen + true + 42 + 42 + + Aircraft/A320Family/Models/Instruments/ECAM/res/elec-apu-gen-off.png + + + + y-shift + -53 + + + x-shift + -11 + + + + + + /controls/electrical/switches/gen-apu + 0 + + + /controls/APU/master + 1 + + + + + + apugenno + true + 42 + 42 + + Aircraft/A320Family/Models/Instruments/ECAM/res/elec-apu-gen-no.png + + + + y-shift + -53 + + + x-shift + -11 + + + + + + /controls/APU/master + 0 + + + + diff --git a/Models/Instruments/ECAM/res/elec-apu-gen-no.png b/Models/Instruments/ECAM/res/elec-apu-gen-no.png new file mode 100644 index 00000000..a3896e72 Binary files /dev/null and b/Models/Instruments/ECAM/res/elec-apu-gen-no.png differ diff --git a/Models/Instruments/ECAM/res/elec-apu-gen-off.png b/Models/Instruments/ECAM/res/elec-apu-gen-off.png index 9b51f079..8392bbb2 100644 Binary files a/Models/Instruments/ECAM/res/elec-apu-gen-off.png and b/Models/Instruments/ECAM/res/elec-apu-gen-off.png differ diff --git a/Models/Instruments/ECAM/res/elec-apu-gen.png b/Models/Instruments/ECAM/res/elec-apu-gen.png deleted file mode 100644 index 757104df..00000000 Binary files a/Models/Instruments/ECAM/res/elec-apu-gen.png and /dev/null differ diff --git a/Models/Instruments/ECAM/res/page-elec.png b/Models/Instruments/ECAM/res/page-elec.png index cf640f70..ad0ed4ba 100644 Binary files a/Models/Instruments/ECAM/res/page-elec.png and b/Models/Instruments/ECAM/res/page-elec.png differ diff --git a/Nasal/electrical.nas b/Nasal/electrical.nas index 9f30b2ab..ac4f597a 100644 --- a/Nasal/electrical.nas +++ b/Nasal/electrical.nas @@ -38,6 +38,8 @@ var elec_init = func { setprop("/systems/electrical/bus/ac1-hz", 0); setprop("/systems/electrical/bus/ac2-hz", 0); setprop("/systems/electrical/bus/ac-ess", 0); + setprop("/systems/electrical/extra/ext-volts", 0); + setprop("/systems/electrical/extra/apu-volts", 0); setprop("systems/electrical/on", 0); setprop("/controls/electrical/xtie/xtieL", 0); setprop("/controls/electrical/xtie/xtieR", 0); @@ -131,12 +133,14 @@ var master_elec = func { if (extpwr_on and gen_ext_sw) { 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/bus/dc1", dc_volt_std); setprop("/systems/electrical/bus/dc-ess", dc_volt_std); setprop("/systems/electrical/bus/dc1-amps", dc_amps_std); } else if (rpmapu >= 94.9 and gen_apu_sw) { 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/bus/dc1", dc_volt_std); setprop("/systems/electrical/bus/dc-ess", dc_volt_std); setprop("/systems/electrical/bus/dc1-amps", dc_amps_std); @@ -154,6 +158,8 @@ var master_elec = func { setprop("/systems/electrical/bus/dc1-amps", dc_amps_std); } else { setprop("/systems/electrical/bus/ac1", 0); + setprop("/systems/electrical/extra/ext-volts", 0); + setprop("/systems/electrical/extra/apu-volts", 0); if (getprop("/systems/electrical/bus/ac2") == 0) { setprop("/systems/electrical/bus/ac-ess", 0); } @@ -168,12 +174,14 @@ var master_elec = func { if (extpwr_on and gen_ext_sw) { 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/bus/dc2", dc_volt_std); setprop("/systems/electrical/bus/dc-ess", dc_volt_std); setprop("/systems/electrical/bus/dc2-amps", dc_amps_std); } else if (rpmapu >= 94.9 and gen_apu_sw) { 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/bus/dc2", dc_volt_std); setprop("/systems/electrical/bus/dc-ess", dc_volt_std); setprop("/systems/electrical/bus/dc2-amps", dc_amps_std); @@ -191,6 +199,8 @@ var master_elec = func { setprop("/systems/electrical/bus/dc2-amps", dc_amps_std); } else { setprop("/systems/electrical/bus/ac2", 0); + setprop("/systems/electrical/extra/ext-volts", 0); + setprop("/systems/electrical/extra/apu-volts", 0); if (getprop("/systems/electrical/bus/ac1") == 0) { setprop("/systems/electrical/bus/ac-ess", 0); }