From 2e5736860c5d82a079c2630b0be43184ed3b7baa Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Thu, 15 Oct 2020 17:57:11 +0100 Subject: [PATCH] Show DC BAT in XX when the battery switches are off, hence the BCL aren't powered --- Models/Instruments/Lower-ECAM/Lower-ECAM.nas | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index fdafabba..9a3c40ae 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -1662,9 +1662,15 @@ var canvas_lowerECAM_elec = { } # Bus indicators - if (systems.ELEC.Bus.dcBat.getValue() > 25) { - me["ELEC-DCBAT-label"].setColor(0.0509,0.7529,0.2941); + if (systems.ELEC.Switch.bat1.getValue() or systems.ELEC.Switch.bat2.getValue()) { + me["ELEC-DCBAT-label"].setText("DC BAT"); + if (systems.ELEC.Bus.dcBat.getValue() > 25) { + me["ELEC-DCBAT-label"].setColor(0.0509,0.7529,0.2941); + } else { + me["ELEC-DCBAT-label"].setColor(0.7333,0.3803,0); + } } else { + me["ELEC-DCBAT-label"].setText("XX"); # BCL not powered hence no voltage info supplied from BCL me["ELEC-DCBAT-label"].setColor(0.7333,0.3803,0); }