From 2525fc5b08090e5ba7460ff1dff9384a964bf94e Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 18 Apr 2020 13:53:54 +0100 Subject: [PATCH] Correct electrical power source for clock and rudder trim display --- Models/FlightDeck/a320.flightdeck.xml | 104 ++++++++------------------ Nasal/Instruments/clock.nas | 1 + 2 files changed, 33 insertions(+), 72 deletions(-) diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index a4a44007..7d7236b6 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -430,8 +430,6 @@ radio_vor_led rgear_down rgear_unlk - rudder-trim-letter - rudder-trim spd-text spd-text-test terr_on_nd_label @@ -452,6 +450,18 @@ + + + select + rudder-trim-letter + rudder-trim + + + systems/electrical/bus/dc-2 + 25 + + + select @@ -6934,20 +6944,10 @@ chrono1 - - - systems/electrical/bus/dc-hot-1 - 25 - - - systems/electrical/bus/dc-hot-2 - 25 - - - systems/electrical/bus/dc-ess - 25 - - + + systems/electrical/bus/dc-ess + 25 + controls/switches/annun-test @@ -6977,20 +6977,10 @@ chrono2_1 - - - systems/electrical/bus/dc-hot-1 - 25 - - - systems/electrical/bus/dc-hot-2 - 25 - - - systems/electrical/bus/dc-ess - 25 - - + + systems/electrical/bus/dc-ess + 25 + instrumentation/clock/serviceable @@ -7017,20 +7007,10 @@ chrono2_2 - - - systems/electrical/bus/dc-hot-1 - 25 - - - systems/electrical/bus/dc-hot-2 - 25 - - - systems/electrical/bus/dc-ess - 25 - - + + systems/electrical/bus/dc-ess + 25 + instrumentation/clock/serviceable instrumentation/chrono[0]/chrono-reset @@ -7063,20 +7043,10 @@ UTC_3 - - - systems/electrical/bus/dc-hot-1 - 25 - - - systems/electrical/bus/dc-hot-2 - 25 - - - systems/electrical/bus/dc-ess - 25 - - + + systems/electrical/bus/dc-ess + 25 + instrumentation/clock/serviceable @@ -7107,20 +7077,10 @@ chrono3 - - - systems/electrical/bus/dc-hot-1 - 25 - - - systems/electrical/bus/dc-hot-2 - 25 - - - systems/electrical/bus/dc-ess - 25 - - + + systems/electrical/bus/dc-ess + 25 + instrumentation/clock/serviceable diff --git a/Nasal/Instruments/clock.nas b/Nasal/Instruments/clock.nas index 921887b5..abecd297 100644 --- a/Nasal/Instruments/clock.nas +++ b/Nasal/Instruments/clock.nas @@ -96,6 +96,7 @@ setlistener("instrumentation/clock/et-selector", func(et){ },0,0); var start_loop = maketimer(0.1, func { + if (systems.ELEC.Bus.dcEss.getValue() < 25) { return; } # Annun-test if (getprop("controls/switches/annun-test") == 1) { var UTC_date = sprintf("%02d %02d %02d", "88", "88", "88");