diff --git a/A320-main.xml b/A320-main.xml
index a1b90257..b04a5a41 100644
--- a/A320-main.xml
+++ b/A320-main.xml
@@ -231,6 +231,7 @@
0
0
0
+ 0
0
0
0
diff --git a/Models/Instruments/OHpanel/OHpanel.xml b/Models/Instruments/OHpanel/OHpanel.xml
index deda8eb1..61e65c7a 100644
--- a/Models/Instruments/OHpanel/OHpanel.xml
+++ b/Models/Instruments/OHpanel/OHpanel.xml
@@ -11,8 +11,6 @@
select
- ACESSFeedBtn1F
- ACESSFeedBtn2A
ACPack1Btn1F
ACPack1Btn2O
ACPack2Btn1F
@@ -95,6 +93,8 @@
select
+ ACESSFeedBtn1F
+ ACESSFeedBtn2A
AftCargoIsoBtn1F
AftCargoIsoBtn2O
AftCargoSmkBtn1S
@@ -355,7 +355,7 @@
nasal
-
+
@@ -416,7 +416,7 @@
nasal
-
+
@@ -464,7 +464,7 @@
nasal
-
+
@@ -872,7 +872,7 @@
nasal
-
+
@@ -934,7 +934,7 @@
nasal
-
+
@@ -996,7 +996,7 @@
nasal
-
+
@@ -1230,7 +1230,7 @@
nasal
-
+
@@ -1297,7 +1297,7 @@
nasal
-
+
@@ -1364,7 +1364,7 @@
nasal
-
+
@@ -1431,7 +1431,7 @@
nasal
-
+
@@ -1498,7 +1498,7 @@
nasal
-
+
@@ -1565,7 +1565,7 @@
nasal
-
+
@@ -1632,7 +1632,7 @@
nasal
-
+
@@ -1700,7 +1700,7 @@
nasal
-
+
@@ -1767,7 +1767,7 @@
nasal
-
+
@@ -1833,7 +1833,7 @@
nasal
-
+
@@ -1876,7 +1876,7 @@
nasal
-
+
@@ -1919,7 +1919,7 @@
nasal
-
+
@@ -1964,7 +1964,7 @@
nasal
-
+
@@ -2040,7 +2040,7 @@
nasal
-
+
@@ -2126,7 +2126,7 @@
nasal
-
+
@@ -2193,7 +2193,7 @@
nasal
-
+
@@ -2260,7 +2260,7 @@
nasal
-
+
@@ -2327,7 +2327,7 @@
nasal
-
+
@@ -2395,7 +2395,7 @@
nasal
-
+
@@ -2454,7 +2454,7 @@
nasal
-
+
@@ -2519,7 +2519,7 @@
nasal
-
+
@@ -2584,7 +2584,7 @@
nasal
-
+
@@ -2648,7 +2648,7 @@
nasal
-
+
@@ -2713,7 +2713,7 @@
nasal
-
+
@@ -2778,7 +2778,7 @@
nasal
-
+
@@ -2843,7 +2843,7 @@
nasal
-
+
@@ -2909,7 +2909,7 @@
nasal
-
+
@@ -2970,7 +2970,7 @@
nasal
-
+
@@ -3037,7 +3037,7 @@
nasal
-
+
@@ -3134,9 +3134,13 @@
false
-
+
- systems/electrical/bus/dc-ess
+ /engines/engine[0]/n2-actual
+ 14.0
+
+
+ systems/electrical/bus/dc-bat
25
@@ -3210,23 +3214,14 @@
false
-
-
- systems/electrical/bus/dc-bat
- 25
-
-
- systems/electrical/bus/dc-ess
- 25
-
-
+ /systems/electrical/sources/idg-1/gcu-1-powered
property-toggle
controls/electrical/switches/gen-1
nasal
-
+
@@ -3278,12 +3273,12 @@
- systems/electrical/bus/dc-bat
- 25
+ systems/electrical/bus/ac-1
+ 110
- systems/electrical/bus/dc-ess
- 25
+ systems/electrical/bus/ac-2
+ 110
@@ -3292,7 +3287,7 @@
nasal
-
+
@@ -3343,17 +3338,14 @@
false
-
- systems/electrical/bus/dc-bat
- 25
-
+ /systems/electrical/sources/apu/gcu-powered
property-toggle
controls/electrical/switches/apu
nasal
-
+
@@ -3424,7 +3416,7 @@
nasal
-
+
@@ -3468,7 +3460,7 @@
nasal
-
+
@@ -3532,23 +3524,14 @@
false
-
-
- systems/electrical/bus/dc-bat
- 25
-
-
- systems/electrical/bus/dc-ess
- 25
-
-
+ /systems/electrical/sources/idg-2/gcu-2-powered
property-toggle
controls/electrical/switches/gen-2
nasal
-
+
@@ -3635,7 +3618,11 @@
- systems/electrical/bus/dc-ess
+ /engines/engine[1]/n2-actual
+ 14.0
+
+
+ systems/electrical/bus/dc-bat
25
@@ -3725,7 +3712,7 @@
nasal
-
+
@@ -3887,7 +3874,7 @@
nasal
-
+
@@ -4248,7 +4235,7 @@
nasal
-
+
@@ -4312,7 +4299,7 @@
nasal
-
+
@@ -4385,7 +4372,7 @@
nasal
-
+
@@ -4458,7 +4445,7 @@
nasal
-
+
@@ -4524,7 +4511,7 @@
nasal
-
+
@@ -4597,7 +4584,7 @@
nasal
-
+
@@ -4671,7 +4658,7 @@
nasal
-
+
@@ -4862,7 +4849,7 @@
nasal
-
+
@@ -4939,7 +4926,7 @@
nasal
-
+
@@ -5448,7 +5435,7 @@
nasal
-
+
@@ -5509,7 +5496,7 @@
nasal
-
+
@@ -5570,7 +5557,7 @@
nasal
-
+
@@ -5635,7 +5622,7 @@
nasal
-
+
@@ -5678,7 +5665,7 @@
nasal
-
+
@@ -5729,7 +5716,7 @@
nasal
-
+
@@ -5793,7 +5780,7 @@
nasal
-
+
@@ -5865,7 +5852,7 @@
nasal
-
+
@@ -5970,7 +5957,7 @@
nasal
-
+
@@ -7355,7 +7342,7 @@
nasal
-
+
@@ -7401,7 +7388,7 @@
nasal
-
+
@@ -7521,7 +7508,7 @@
nasal
-
+
@@ -7562,7 +7549,7 @@
nasal
-
+
@@ -7614,7 +7601,7 @@
nasal
-
+
diff --git a/Models/Instruments/OHpanel/OHpanelEPR.xml b/Models/Instruments/OHpanel/OHpanelEPR.xml
index 8fb64484..fa2021b5 100644
--- a/Models/Instruments/OHpanel/OHpanelEPR.xml
+++ b/Models/Instruments/OHpanel/OHpanelEPR.xml
@@ -68,7 +68,7 @@
nasal
-
+
@@ -169,7 +169,7 @@
nasal
-
+
diff --git a/Models/Instruments/OHpanel/SteepAppr.xml b/Models/Instruments/OHpanel/SteepAppr.xml
index bb56c86e..655894f7 100644
--- a/Models/Instruments/OHpanel/SteepAppr.xml
+++ b/Models/Instruments/OHpanel/SteepAppr.xml
@@ -53,7 +53,7 @@
nasal
-
+
diff --git a/Nasal/ECAM/ECAM-controller.nas b/Nasal/ECAM/ECAM-controller.nas
index 09832bdd..e39d7afb 100644
--- a/Nasal/ECAM/ECAM-controller.nas
+++ b/Nasal/ECAM/ECAM-controller.nas
@@ -90,8 +90,14 @@ var warningNodes = {
navTerrFault: props.globals.initNode("/ECAM/warnings/timer/nav-gpws-terr-fault"),
},
Flipflops: {
+ apuGenFault: props.globals.initNode("/ECAM/warnings/flipflop/apu-gen-fault"),
+ apuGenFaultOnOff: props.globals.initNode("/ECAM/warnings/flipflop/apu-gen-fault-on-off"),
bleed1LowTemp: props.globals.initNode("/ECAM/warnings/logic/bleed-1-low-temp-flipflop-output"),
bleed2LowTemp: props.globals.initNode("/ECAM/warnings/logic/bleed-2-low-temp-flipflop-output"),
+ gen1Fault: props.globals.initNode("/ECAM/warnings/flipflop/gen-1-fault"),
+ gen2Fault: props.globals.initNode("/ECAM/warnings/flipflop/gen-2-fault"),
+ gen1FaultOnOff: props.globals.initNode("/ECAM/warnings/flipflop/gen-1-fault-on-off"),
+ gen2FaultOnOff: props.globals.initNode("/ECAM/warnings/flipflop/gen-2-fault-on-off"),
pack1Ovht: props.globals.initNode("/ECAM/warnings/flipflop/pack-1-ovht"),
pack2Ovht: props.globals.initNode("/ECAM/warnings/flipflop/pack-2-ovht"),
},
diff --git a/Nasal/ECAM/ECAM-logic.nas b/Nasal/ECAM/ECAM-logic.nas
index 1993baa4..fe11ceee 100644
--- a/Nasal/ECAM/ECAM-logic.nas
+++ b/Nasal/ECAM/ECAM-logic.nas
@@ -1139,6 +1139,72 @@ var messages_priority_2 = func {
ECAM_controller.warningReset(acBusEssShedAtc);
}
+ if (gen1fault.clearFlag == 0 and warningNodes.Flipflops.gen1Fault.getValue() and (phaseVar2 == 2 or phaseVar2 == 3 or phaseVar2 == 6 or phaseVar2 == 9)) {
+ gen1fault.active = 1;
+ if (!warningNodes.Flipflops.gen1FaultOnOff.getValue()) {
+ gen1faultGen.active = 1;
+ } else {
+ ECAM_controller.warningReset(gen1faultGen);
+ }
+
+ if (systems.ELEC.Switch.gen1.getBoolValue()) {
+ gen1faultGen2.active = 1;
+ gen1faultGen3.active = 1;
+ } else {
+ ECAM_controller.warningReset(gen1faultGen2);
+ ECAM_controller.warningReset(gen1faultGen3);
+ }
+ } else {
+ ECAM_controller.warningReset(gen1fault);
+ ECAM_controller.warningReset(gen1faultGen);
+ ECAM_controller.warningReset(gen1faultGen2);
+ ECAM_controller.warningReset(gen1faultGen3);
+ }
+
+ if (gen2fault.clearFlag == 0 and warningNodes.Flipflops.gen2Fault.getValue() and (phaseVar2 == 2 or phaseVar2 == 3 or phaseVar2 == 6 or phaseVar2 == 9)) {
+ gen2fault.active = 1;
+ if (!warningNodes.Flipflops.gen2FaultOnOff.getValue()) {
+ gen2faultGen.active = 1;
+ } else {
+ ECAM_controller.warningReset(gen2faultGen);
+ }
+
+ if (systems.ELEC.Switch.gen2.getBoolValue()) {
+ gen2faultGen2.active = 1;
+ gen2faultGen3.active = 1;
+ } else {
+ ECAM_controller.warningReset(gen2faultGen2);
+ ECAM_controller.warningReset(gen2faultGen3);
+ }
+ } else {
+ ECAM_controller.warningReset(gen2fault);
+ ECAM_controller.warningReset(gen2faultGen);
+ ECAM_controller.warningReset(gen2faultGen2);
+ ECAM_controller.warningReset(gen2faultGen3);
+ }
+
+ if (apuGenfault.clearFlag == 0 and warningNodes.Flipflops.apuGenFault.getValue() and (phaseVar2 <= 3 or phaseVar2 == 6 or phaseVar2 >= 9)) {
+ apuGenfault.active = 1;
+ if (!warningNodes.Flipflops.apuGenFaultOnOff.getValue()) {
+ apuGenfaultGen.active = 1;
+ } else {
+ ECAM_controller.warningReset(apuGenfaultGen);
+ }
+
+ if (systems.ELEC.Switch.genApu.getBoolValue()) {
+ apuGenfaultGen2.active = 1;
+ apuGenfaultGen3.active = 1;
+ } else {
+ ECAM_controller.warningReset(apuGenfaultGen2);
+ ECAM_controller.warningReset(apuGenfaultGen3);
+ }
+ } else {
+ ECAM_controller.warningReset(apuGenfault);
+ ECAM_controller.warningReset(apuGenfaultGen);
+ ECAM_controller.warningReset(apuGenfaultGen2);
+ ECAM_controller.warningReset(apuGenfaultGen3);
+ }
+
if ((athr_offw.clearFlag == 0) and athrWarn.getValue() == 2 and phaseVar2 != 4 and phaseVar2 != 8 and phaseVar2 != 10) {
athr_offw.active = 1;
athr_offw_1.active = 1;
diff --git a/Nasal/ECAM/ECAM-messages.nas b/Nasal/ECAM/ECAM-messages.nas
index 1e0cc66b..7d6e0462 100644
--- a/Nasal/ECAM/ECAM-messages.nas
+++ b/Nasal/ECAM/ECAM-messages.nas
@@ -212,9 +212,27 @@ var warnings = std.Vector.new([
var dcBusEssShedIcing = warning.new(msg: " AVOID ICING CONDITIONS", colour: "c"),
# AC ESS BUS SHED
- var acBusEssShed = warning.new(msg: "ELEC DC ESS BUS SHED", colour: "a", aural: 1, light: 1, isMainMsg: 1),
+ var acBusEssShed = warning.new(msg: "ELEC AC ESS BUS SHED", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var acBusEssShedAtc = warning.new(msg: " -ATC..............SYS 2", colour: "c"),
+ # GEN 1 FAULT
+ var gen1fault = warning.new(msg: "ELEC GEN 1 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
+ var gen1faultGen = warning.new(msg: "-GEN 1......OFF THEN ON", colour: "c"),
+ var gen1faultGen2 = warning.new(msg: " •IF UNSUCCESSFUL :", colour: "w"),
+ var gen1faultGen3 = warning.new(msg: "-GEN 1..............OFF", colour: "c"),
+
+ # GEN 2 FAULT
+ var gen2fault = warning.new(msg: "ELEC GEN 2 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
+ var gen2faultGen = warning.new(msg: "-GEN 2......OFF THEN ON", colour: "c"),
+ var gen2faultGen2 = warning.new(msg: " •IF UNSUCCESSFUL :", colour: "w"),
+ var gen2faultGen3 = warning.new(msg: "-GEN 2..............OFF", colour: "c"),
+
+ # APU GEN FAULT
+ var apuGenfault = warning.new(msg: "ELEC APU GEN FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
+ var apuGenfaultGen = warning.new(msg: "-APU GEN....OFF THEN ON", colour: "c"),
+ var apuGenfaultGen2 = warning.new(msg: " •IF UNSUCCESSFUL :", colour: "w"),
+ var apuGenfaultGen3 = warning.new(msg: "-APU GEN............OFF", colour: "c"),
+
# Autothrust
var athr_offw = warning.new(msg: "AUTO FLT A/THR OFF", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var athr_offw_1 = warning.new(msg: "-THR LEVERS........MOVE", colour: "c"),
diff --git a/Nasal/Libraries/buttons.nas b/Nasal/Libraries/buttons.nas
index f5ade43d..edbc2a09 100644
--- a/Nasal/Libraries/buttons.nas
+++ b/Nasal/Libraries/buttons.nas
@@ -150,3 +150,9 @@ var toggleSTD = func {
pts.Instrumentation.Altimeter.std.setBoolValue(1);
}
}
+
+var pushbuttonSound = props.globals.getNode("/sim/sounde/pushbutton");
+var pushbutton = func {
+ pushbuttonSound.setValue(1);
+ settimer(func {pushbuttonSound.setValue(0);},0.20);
+}
\ No newline at end of file
diff --git a/Nasal/Libraries/libraries.nas b/Nasal/Libraries/libraries.nas
index a597a1c9..8cf22fe4 100644
--- a/Nasal/Libraries/libraries.nas
+++ b/Nasal/Libraries/libraries.nas
@@ -7,7 +7,6 @@ print("------------------------------------------------");
print("Copyright (c) 2016-2020 Josh Davidson (Octal450)");
print("------------------------------------------------");
-
setprop("/sim/menubar/default/menu[0]/item[0]/enabled", 0);
setprop("/sim/menubar/default/menu[2]/item[0]/enabled", 0);
setprop("/sim/menubar/default/menu[2]/item[2]/enabled", 0);
diff --git a/Nasal/Systems/electrical.nas b/Nasal/Systems/electrical.nas
index 4e295ea7..1ff311e2 100644
--- a/Nasal/Systems/electrical.nas
+++ b/Nasal/Systems/electrical.nas
@@ -120,10 +120,10 @@ var ELEC = {
EmerGen: {
volts: props.globals.getNode("/systems/electrical/sources/emer-gen/output-volt"),
hertz: props.globals.getNode("/systems/electrical/sources/emer-gen/output-hertz"),
+ voltsRelay: props.globals.getNode("/systems/electrical/relay/emer-glc/output"),
},
Ext: {
volts: props.globals.getNode("/systems/electrical/sources/ext/output-volt"),
- voltsRelay: props.globals.getNode("/systems/electrical/relay/emer-glc/output"),
hertz: props.globals.getNode("/systems/electrical/sources/ext/output-hertz"),
},
tr1: {
@@ -153,9 +153,9 @@ var ELEC = {
},
Switch: {
acEssFeed: props.globals.getNode("/controls/electrical/switches/ac-ess-feed"),
- busTie: props.globals.getNode("/controls/electrical/switches/bus-tie"),
bat1: props.globals.getNode("/controls/electrical/switches/bat-1"),
bat2: props.globals.getNode("/controls/electrical/switches/bat-2"),
+ busTie: props.globals.getNode("/controls/electrical/switches/bus-tie"),
emerGenTest: props.globals.getNode("/controls/electrical/switches/emer-gen-test"),
extPwr: props.globals.getNode("/controls/electrical/switches/ext-pwr"),
galley: props.globals.getNode("/controls/electrical/switches/galley"),
diff --git a/Sounds/A320-common-sound.xml b/Sounds/A320-common-sound.xml
index df99d463..e93408c2 100644
--- a/Sounds/A320-common-sound.xml
+++ b/Sounds/A320-common-sound.xml
@@ -1528,6 +1528,20 @@
+
+ Pushbutton
+ once
+ avionics
+ Aircraft/A320-family/Sounds/Cockpit/pushbutton.wav
+
+ /sim/sounde/pushbutton
+
+
+ sim/current-view/internal
+ 0.25
+
+
+
Flaps Lever
once
diff --git a/Sounds/Cockpit/pushbutton.wav b/Sounds/Cockpit/pushbutton.wav
new file mode 100644
index 00000000..f935763e
Binary files /dev/null and b/Sounds/Cockpit/pushbutton.wav differ
diff --git a/Systems/a320-electrical.xml b/Systems/a320-electrical.xml
index 85687401..3cd7cffb 100644
--- a/Systems/a320-electrical.xml
+++ b/Systems/a320-electrical.xml
@@ -5,6 +5,8 @@
/systems/electrical/some-electric-thingie/rat-deploy
+ /systems/electrical/relay/gen-1-glc/contact-pos
+ /systems/electrical/relay/gen-2-glc/contact-pos
@@ -361,7 +363,6 @@
- /controls/engines/engine[0]/fire-btn eq 1
/systems/failures/electrical/idg-1 eq 1
/controls/electrical/switches/idg-1-disc eq 0
@@ -380,8 +381,8 @@
- 1.3
- 2.8
+ 1.315
+ 2.667
@@ -423,7 +424,8 @@
/systems/failures/electrical/gen-1 ne 1
- /systems/electrical/sources/idg-1/csd-rpm ge 11500
+ /controls/engines/engine[0]/fire-btn eq 0
+ /systems/electrical/sources/idg-1/drive-rpm ge 4730
@@ -446,7 +448,6 @@
- /controls/engines/engine[1]/fire-btn eq 1
/systems/failures/electrical/idg-2 eq 1
/controls/electrical/switches/idg-2-disc eq 0
@@ -465,8 +466,8 @@
- 1.3
- 2.8
+ 1.315
+ 2.667
@@ -508,7 +509,8 @@
/systems/failures/electrical/gen-2 ne 1
- /systems/electrical/sources/idg-2/csd-rpm ge 11500
+ /controls/engines/engine[1]/fire-btn eq 0
+ /systems/electrical/sources/idg-2/drive-rpm ge 4730
@@ -523,27 +525,15 @@
-
+
/engines/engine[2]/n1
240.34
-
-
-
- /controls/apu/fire-btn eq 1
-
-
-
-
- /systems/electrical/sources/apu/drive-rpm-input
- /systems/electrical/sources/apu/working
-
-
- /systems/electrical/sources/apu/drive-rpm-input
+ /systems/electrical/sources/apu/drive-rpm
115
24000
@@ -556,7 +546,7 @@
- /systems/electrical/sources/apu/drive-rpm-input
+ /systems/electrical/sources/apu/drive-rpm
2
120
@@ -567,9 +557,10 @@
+ /controls/apu/fire-btn ne 1
/controls/electrical/switches/apu eq 1
/systems/failures/electrical/apu ne 1
- /systems/electrical/sources/apu/drive-rpm-input ge 23000
+ /systems/electrical/sources/apu/drive-rpm ge 22800
@@ -656,6 +647,15 @@
/systems/electrical/sources/si-1/inverter-gain
+
+
+
+ /systems/electrical/sources/bat-1/volt lt 23.5
+ /systems/electrical/sources/si-1/output-volt lt 110
+ /systems/electrical/sources/si-1/output-volt ge 120
+
+
+
@@ -761,15 +761,69 @@
-
+
+
+
+ /systems/electrical/bus/dc-bat ge 25
+ /systems/electrical/sources/idg-1/pmg-volt ge 110
+
+
+
+
+ /systems/electrical/sources/idg-1/gcu-1-voltage-trip eq 1
/controls/electrical/switches/gen-1 eq 1
+
+
+ /systems/electrical/relay/gen-1-glc/contact-pos eq 1
+
+ /systems/electrical/sources/idg-1/output-volt lt 110
+ /systems/electrical/sources/idg-1/output-volt gt 130
+
+
+
+
+
+
+
+ /systems/electrical/sources/idg-1/gcu-1-frequency-trip eq 1
+ /controls/electrical/switches/gen-1 eq 1
+
+
+ /systems/electrical/relay/gen-1-glc/contact-pos eq 1
+
+ /systems/electrical/sources/idg-1/output-hertz lt 363
+ /systems/electrical/sources/idg-1/output-hertz gt 433
+
+
+
+
+
+
+
+ /systems/acconfig/autoconfig-running eq 1
+ /sim/time/elapsed-sec lt 10
+
+
+ /systems/electrical/sources/idg-1/gcu-1-voltage-trip eq 1
+ /systems/electrical/sources/idg-1/gcu-1-frequency-trip eq 1
+ /systems/electrical/sources/idg-1/drive-rpm lt 4730
+
+
+
+
+
+
+ /sim/time/elapsed-sec lt 10
+
+
+ /controls/electrical/switches/gen-1 eq 1
+ /systems/electrical/sources/idg-1/output-hertz ge 363
+ /systems/electrical/sources/idg-1/output-hertz le 433
/systems/electrical/sources/idg-1/output-volt ge 110
/systems/electrical/sources/idg-1/output-volt le 130
- /systems/electrical/sources/idg-1/output-hertz ge 390
- /systems/electrical/sources/idg-1/output-hertz le 410
- /controls/electrical/switches/gen-1-line-contactor ne 1
+ /systems/electrical/sources/idg-1/gcu-1-fault ne 1
@@ -780,14 +834,69 @@
-
+
+
+
+ /systems/electrical/bus/dc-bat ge 25
+ /systems/electrical/sources/idg-2/pmg-volt ge 110
+
+
+
+
+ /systems/electrical/sources/idg-2/gcu-2-voltage-trip eq 1
/controls/electrical/switches/gen-2 eq 1
+
+
+ /systems/electrical/relay/gen-2-glc/contact-pos eq 1
+
+ /systems/electrical/sources/idg-2/output-volt lt 110
+ /systems/electrical/sources/idg-2/output-volt gt 130
+
+
+
+
+
+
+
+ /systems/electrical/sources/idg-2/gcu-2-frequency-trip eq 1
+ /controls/electrical/switches/gen-2 eq 1
+
+
+ /systems/electrical/relay/gen-2-glc/contact-pos eq 1
+
+ /systems/electrical/sources/idg-2/output-hertz lt 363
+ /systems/electrical/sources/idg-2/output-hertz gt 433
+
+
+
+
+
+
+
+ /systems/acconfig/autoconfig-running eq 1
+ /sim/time/elapsed-sec lt 10
+
+
+ /systems/electrical/sources/idg-2/gcu-2-voltage-trip eq 1
+ /systems/electrical/sources/idg-2/gcu-2-frequency-trip eq 1
+ /systems/electrical/sources/idg-2/drive-rpm lt 4730
+
+
+
+
+
+
+ /sim/time/elapsed-sec lt 10
+
+
+ /controls/electrical/switches/gen-2 eq 1
+ /systems/electrical/sources/idg-2/output-hertz ge 363
+ /systems/electrical/sources/idg-2/output-hertz le 433
/systems/electrical/sources/idg-2/output-volt ge 110
- /systems/electrical/sources/idg-2/output-volt lt 130
- /systems/electrical/sources/idg-2/output-hertz ge 390
- /systems/electrical/sources/idg-2/output-hertz le 410
+ /systems/electrical/sources/idg-2/output-volt le 130
+ /systems/electrical/sources/idg-2/gcu-2-fault ne 1
@@ -814,16 +923,70 @@
+
+
+
+ /systems/electrical/bus/dc-bat ge 25
+ /systems/electrical/sources/apu/pmg-volt ge 101.5
+
+
+
+
+
+
+ /systems/electrical/sources/apu/gcu-voltage-trip eq 1
+ /controls/electrical/switches/apu eq 1
+
+
+ /systems/electrical/relay/apu-glc/contact-pos eq 1
+
+ /systems/electrical/sources/apu/output-volt lt 101.5
+ /systems/electrical/sources/apu/output-volt gt 130
+
+
+
+
+
+
+
+ /systems/electrical/sources/apu/gcu-frequency-trip eq 1
+ /controls/electrical/switches/apu eq 1
+
+
+ /systems/electrical/relay/apu-glc/contact-pos eq 1
+
+ /systems/electrical/sources/apu/output-hertz lt 361
+ /systems/electrical/sources/apu/output-hertz gt 435
+
+
+
+
+
+
+
+ /systems/acconfig/autoconfig-running eq 1
+ /sim/time/elapsed-sec lt 10
+
+
+ /systems/electrical/sources/apu/gcu-voltage-trip eq 1
+ /systems/electrical/sources/apu/gcu-frequency-trip eq 1
+
+
+
+
+ /sim/time/elapsed-sec lt 10
+
/controls/apu/master eq 1
/controls/electrical/switches/apu eq 1
- /systems/electrical/sources/apu/output-volt ge 110
- /systems/electrical/sources/apu/output-volt lt 130
- /systems/electrical/sources/apu/output-hertz ge 390
- /systems/electrical/sources/apu/output-hertz le 410
+ /systems/electrical/sources/apu/output-volt ge 101.5
+ /systems/electrical/sources/apu/output-volt le 130
+ /systems/electrical/sources/apu/output-hertz ge 361
+ /systems/electrical/sources/apu/output-hertz le 435
/systems/electrical/relay/ext-epc/contact-pos eq 0
+ /systems/electrical/sources/apu/gcu-fault ne 1
@@ -907,10 +1070,24 @@
+
+
+
+ /systems/electrical/bus/ac-1 lt 110
+
+
+
+
+ /systems/electrical/relay/ac-ess-feed-1/auto-switch
+ 100
+ 0.33333333333
+
+
/controls/electrical/switches/ac-ess-feed eq 0
+ /systems/electrical/relay/ac-ess-feed-1/auto-switch-timer lt 1
/controls/electrical/switches/emer-gen-test eq 0
@@ -925,7 +1102,10 @@
- /controls/electrical/switches/ac-ess-feed eq 1
+
+ /controls/electrical/switches/ac-ess-feed eq 1
+ /systems/electrical/relay/ac-ess-feed-1/auto-switch-timer eq 1
+
/controls/electrical/switches/emer-gen-test eq 0
@@ -1699,7 +1879,6 @@
- Timer for the ECAM system
/systems/electrical/relay/ac-ess-feed-inverter/contact-pos
100
0.1
@@ -1750,11 +1929,16 @@
/controls/electrical/switches/apu eq 1
- /systems/electrical/relay/apu-glc/contact-pos eq 0
- /systems/electrical/relay/ext-epc/contact-pos eq 0
- /systems/electrical/relay/gen-1-glc/contact-pos eq 0
- /systems/electrical/relay/gen-2-glc/contact-pos eq 0
- /systems/electrical/sources/apu/drive-rpm gt 2000
+
+ /systems/electrical/sources/apu/gcu-fault eq 1
+
+ /systems/electrical/relay/apu-glc/contact-pos eq 0
+ /systems/electrical/relay/ext-epc/contact-pos eq 0
+ /systems/electrical/relay/gen-1-glc/contact-pos eq 0
+ /systems/electrical/relay/gen-2-glc/contact-pos eq 0
+
+
+ /systems/electrical/sources/apu/drive-rpm gt 22800
@@ -1781,7 +1965,10 @@
/controls/electrical/switches/gen-1 eq 1
- /systems/electrical/relay/gen-1-glc/contact-pos eq 0
+
+ /systems/electrical/sources/idg-1/gcu-1-fault eq 1
+ /systems/electrical/relay/gen-1-glc/contact-pos eq 0
+
@@ -1789,7 +1976,10 @@
/controls/electrical/switches/gen-2 eq 1
- /systems/electrical/relay/gen-2-glc/contact-pos eq 0
+
+ /systems/electrical/sources/idg-2/gcu-2-fault eq 1
+ /systems/electrical/relay/gen-2-glc/contact-pos eq 0
+
@@ -1797,7 +1987,7 @@
/systems/failures/electrical/idg-1 eq 1
- /systems/electrical/sources/idg-1/csd-rpm gt 2000
+ /systems/electrical/sources/idg-1/drive-rpm gt 2000
/controls/electrical/switches/idg-1-disc-momentary eq 1
@@ -1808,7 +1998,7 @@
/systems/failures/electrical/idg-2 eq 1
- /systems/electrical/sources/idg-2/csd-rpm gt 2000
+ /systems/electrical/sources/idg-2/drive-rpm gt 2000
/controls/electrical/switches/idg-2-disc-momentary eq 1
diff --git a/Systems/a320-fwc.xml b/Systems/a320-fwc.xml
index 89a79a4b..da23cdd9 100644
--- a/Systems/a320-fwc.xml
+++ b/Systems/a320-fwc.xml
@@ -342,6 +342,34 @@
100
1.0
+
+
+ Timer for the ECAM system
+ /ECAM/warnings/logic/gen-1-fault-set
+ 100
+ 0.1818
+
+
+
+ Timer for the ECAM system
+ /ECAM/warnings/logic/gen-2-fault-set
+ 100
+ 0.1818
+
+
+
+ Timer for the ECAM system
+ /ECAM/warnings/logic/apu-gen-fault-set
+ 100
+ 0.2
+
+
+
+ Timer for the ECAM system
+ /ECAM/warnings/logic/apu-gen-fault-reset
+ 100
+ 0.5
+
@@ -1459,5 +1487,179 @@
+
+
+
+
+
+
+ /engines/engine[0]/state eq 3
+ /systems/electrical/relay/gen-1-glc/contact-pos eq 0
+
+
+
+
+
+
+ /controls/electrical/switches/gen-1 eq 1
+ /controls/electrical/switches/idg-1-disc eq 1
+ /ECAM/warnings/logic/gen-1-inop eq 1
+
+
+
+
+
+
+ /ECAM/warnings/timer/gen-1-fault-set eq 1
+
+
+
+
+ /systems/electrical/relay/gen-1-glc/contact-pos
+ 100
+ 0.5
+
+
+
+
+
+ /ECAM/warning-phase eq 1
+ /ECAM/warning-phase eq 10
+ /systems/electrical/some-electric-thingie/emer-elec-config eq 1
+ /ECAM/warnings/logic/glc-1-online-2-sec eq 1
+
+
+
+
+
+
+
+ /ECAM/warnings/flipflop/gen-1-fault eq 1
+
+ /ECAM/warnings/logic/gen-1-pulse eq 1
+ /controls/electrical/switches/gen-1 eq 1
+
+
+
+
+
+
+
+ /ECAM/warnings/flipflop/gen-1-fault eq 0
+ /ECAM/warning-phase eq 1
+ /ECAM/warning-phase eq 10
+
+
+
+
+
+
+ /engines/engine[1]/state eq 3
+ /systems/electrical/relay/gen-2-glc/contact-pos eq 0
+
+
+
+
+
+
+ /controls/electrical/switches/gen-2 eq 1
+ /controls/electrical/switches/idg-2-disc eq 1
+ /ECAM/warnings/logic/gen-2-inop eq 1
+
+
+
+
+
+
+ /ECAM/warnings/timer/gen-2-fault-set eq 1
+
+
+
+
+ /systems/electrical/relay/gen-2-glc/contact-pos
+ 100
+ 0.5
+
+
+
+
+
+ /ECAM/warning-phase eq 1
+ /ECAM/warning-phase eq 10
+ /systems/electrical/some-electric-thingie/emer-elec-config eq 1
+ /ECAM/warnings/logic/glc-2-online-2-sec eq 1
+
+
+
+
+
+
+
+ /ECAM/warnings/flipflop/gen-2-fault eq 1
+
+ /ECAM/warnings/logic/gen-2-pulse eq 1
+ /controls/electrical/switches/gen-2 eq 1
+
+
+
+
+
+
+
+ /ECAM/warnings/flipflop/gen-2-fault eq 0
+ /ECAM/warning-phase eq 1
+ /ECAM/warning-phase eq 10
+
+
+
+
+
+
+ /systems/apu/available eq 1
+ /systems/electrical/sources/apu/gcu-fault eq 1
+
+
+
+
+
+
+ /controls/electrical/switches/apu eq 1
+ /ECAM/warnings/logic/apu-gen-fault eq 1
+
+
+
+
+
+
+ /ECAM/warning-phase eq 1
+
+ /systems/apu/available eq 1
+ /controls/electrical/switches/apu eq 1
+ /systems/electrical/sources/apu/gcu-fault eq 0
+
+
+
+
+
+
+
+ /ECAM/warnings/flipflop/apu-gen-fault eq 1
+
+ /ECAM/warnings/logic/apu-elec-gen-pulse eq 1
+ /controls/electrical/switches/apu eq 1
+
+
+
+
+
+
+
+ /ECAM/warnings/flipflop/apu-gen-fault eq 0
+ /ECAM/warning-phase eq 1
+ /ECAM/warning-phase eq 10
+
+
+
+
diff --git a/Systems/ecam-proprules.xml b/Systems/ecam-proprules.xml
index e6545cf2..80d56c3b 100644
--- a/Systems/ecam-proprules.xml
+++ b/Systems/ecam-proprules.xml
@@ -558,6 +558,39 @@
+
+ monostable
+
+
+ /controls/electrical/switches/apu
+
+
+
+
+
+ monostable
+
+
+ /controls/electrical/switches/gen-1
+
+
+
+
+
+ monostable
+
+
+ /controls/electrical/switches/gen-2
+
+
+
+
monostable
+
+ RS
+
+ /ECAM/warnings/logic/gen-1-fault-set-output
+
+
+ /ECAM/warnings/logic/gen-1-fault-reset
+
+
+
+
+
+ RS
+
+ /ECAM/warnings/logic/gen-1-fault-on-off-set
+
+
+ /ECAM/warnings/logic/gen-1-fault-on-off-reset
+
+
+
+
+
+ RS
+
+ /ECAM/warnings/logic/gen-2-fault-set-output
+
+
+ /ECAM/warnings/logic/gen-2-fault-reset
+
+
+
+
+
+ RS
+
+ /ECAM/warnings/logic/gen-2-fault-on-off-set
+
+
+ /ECAM/warnings/logic/gen-2-fault-on-off-reset
+
+
+
+
+
+
+ RS
+
+ /ECAM/warnings/timer/apu-gen-fault-set
+
+
+ /ECAM/warnings/timer/apu-gen-fault-reset
+
+
+
+
+
+ RS
+
+ /ECAM/warnings/logic/apu-gen-fault-on-off-set
+
+
+ /ECAM/warnings/logic/apu-gen-fault-on-off-reset
+
+
+
diff --git a/revision.txt b/revision.txt
index 86ee83a4..aaa6442f 100644
--- a/revision.txt
+++ b/revision.txt
@@ -1 +1 @@
-40
\ No newline at end of file
+41
\ No newline at end of file