From 6a8f13aeb46f7a409bda9ba262695fc1103389c0 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Wed, 14 Oct 2020 13:51:30 +0100 Subject: [PATCH] Emergency bugfix: fix that GCU fault would inhibit gens connecting on startup... --- Nasal/Libraries/libraries.nas | 1 - Systems/a320-electrical.xml | 101 +++++++++++++++++++++++++++------- revision.txt | 2 +- 3 files changed, 83 insertions(+), 21 deletions(-) diff --git a/Nasal/Libraries/libraries.nas b/Nasal/Libraries/libraries.nas index b0000108..c0ef6ad0 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/Systems/a320-electrical.xml b/Systems/a320-electrical.xml index d3cfbb65..6c1f4771 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 @@ -778,31 +780,61 @@ + + + + /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-fault eq 1 - /controls/electrical/switches/gen-1 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/output-hertz lt 363 - /systems/electrical/sources/idg-1/output-hertz gt 433 + /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/gcu-1-fault eq 0 - /controls/electrical/switches/gen-1-line-contactor ne 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/gcu-1-fault ne 1 @@ -821,30 +853,61 @@ + + + + /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-fault eq 1 - /controls/electrical/switches/gen-2 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/output-hertz lt 363 - /systems/electrical/sources/idg-2/output-hertz gt 433 + /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/gcu-2-fault eq 0 + /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 le 130 + /systems/electrical/sources/idg-2/gcu-2-fault ne 1 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