From c7cc93caf0ecede1dbae81ba529d6bcec8c45989 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Tue, 4 Aug 2020 16:35:01 +0100 Subject: [PATCH] Correct power supply / VHF3 interaction of simbrief --- Nasal/MCDU/INITA.nas | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Nasal/MCDU/INITA.nas b/Nasal/MCDU/INITA.nas index 57be5da3..3fffc6f9 100644 --- a/Nasal/MCDU/INITA.nas +++ b/Nasal/MCDU/INITA.nas @@ -225,12 +225,20 @@ var initInputA = func(key, i) { } } else if (key == "R2") { if (getprop("engines/engine[0]/state") != 3 and getprop("engines/engine[1]/state") != 3) { - if (getprop("/FMGC/simbrief-username") == "") { - mcdu.mcdu_message(i, "MISSING USERNAME") - } elsif (!Simbrief.SimbriefParser.inhibit) { - Simbrief.SimbriefParser.fetch(getprop("/FMGC/simbrief-username"), i); + if (!ecam.vhf3_voice.active) { + if (atsu.ATSU.working) { + if (getprop("/FMGC/simbrief-username") == "") { + mcdu.mcdu_message(i, "MISSING USERNAME") + } elsif (!Simbrief.SimbriefParser.inhibit) { + Simbrief.SimbriefParser.fetch(getprop("/FMGC/simbrief-username"), i); + } else { + mcdu_message(i, "NOT ALLOWED"); + } + } else { + mcdu_message(i, "NO COMM MSG NOT GEN"); + } } else { - mcdu_message(i, "NOT ALLOWED"); + mcdu_message(i, "VHF3 VOICE MSG NOT GEN"); } } else { mcdu_message(i, "NOT ALLOWED");