Show DC BAT in XX when the battery switches are off, hence the BCL aren't powered
This commit is contained in:
parent
293270f57e
commit
2e5736860c
1 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue