From 154fcfea403efa79f00e4707d2f5cebe4654ea1d Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 29 Dec 2017 20:00:39 -0500 Subject: [PATCH] A3XX: Fix light power sources, and fix ON BATT light not working without main power --- Models/FlightDeck/a320.flightdeck.xml | 560 +++++----------- Models/Instruments/OHpanel/OHpanel.xml | 872 +++++++------------------ Nasal/ADIRS.nas | 2 +- revision.txt | 2 +- 4 files changed, 406 insertions(+), 1030 deletions(-) diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index 6dd2521c..4ec08048 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -408,16 +408,10 @@ wpt_led wpt_led.001 - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + @@ -471,16 +465,10 @@ true - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + nasal @@ -6482,16 +6140,10 @@ false - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + nasal @@ -6507,16 +6159,10 @@ false - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + nasal @@ -6532,16 +6178,10 @@ false - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + property-toggle controls/switches/LrainRpt @@ -6561,16 +6201,10 @@ false - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + property-toggle controls/switches/RrainRpt @@ -6665,16 +6299,10 @@ false - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + property-toggle controls/oxygen/masksSys @@ -6712,16 +6340,10 @@ false - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + property-toggle controls/oxygen/crewOxyPB @@ -6763,16 +6385,10 @@ controls/OH/protectors/maskman 1 - - - systems/electrical/bus/dc1 - 25 - - - systems/electrical/bus/dc2 - 25 - - + + systems/electrical/bus/dc-ess + 25 + property-toggle diff --git a/Nasal/ADIRS.nas b/Nasal/ADIRS.nas index 2d04f1b0..c683b522 100644 --- a/Nasal/ADIRS.nas +++ b/Nasal/ADIRS.nas @@ -93,7 +93,7 @@ var ADIRS = { if (ac1 >= 110 or ac2 >= 110) { pwr_src = "AC"; - } else if (batt1_amps >= 120 or batt2_amps >= 120) { + } else if ((batt1_amps >= 120 or batt2_amps >= 120) and (getprop("/controls/adirs/ir[0]/knob") != 0 or getprop("/controls/adirs/ir[1]/knob") != 0 or getprop("/controls/adirs/ir[2]/knob") != 0)) { pwr_src = "BATT"; } else { pwr_src = "XX"; diff --git a/revision.txt b/revision.txt index edfd6052..e35e47da 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4202 \ No newline at end of file +4203 \ No newline at end of file