From 6745986efd9831b6d05f3fe9e9d22ad713e5a67d Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 16 Jun 2017 18:25:33 -0400 Subject: [PATCH] A3XX: Fix MCDU not allowing certain altitudes in THRRED/ACC, make Parking Brake lever working, improve hidden ECAM msgs --- Models/FlightDeck/a320.flightdeck.xml | 4 +- .../Instruments/Upper-ECAM-MSG/ECAM-MSG.xml | 40 +++++++++---------- Nasal/MCDU/MCDU1.nas | 2 +- Nasal/MCDU/MCDU2.nas | 8 ++-- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index e61c4cab..c0e35306 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -4667,7 +4667,7 @@ rotate ParkBrk - controls/parking-brake + /controls/gear/brake-parking -90
0.1270 @@ -4689,7 +4689,7 @@ false property-toggle - controls/parking-brake + /controls/gear/brake-parking diff --git a/Models/Instruments/Upper-ECAM-MSG/ECAM-MSG.xml b/Models/Instruments/Upper-ECAM-MSG/ECAM-MSG.xml index 33413c10..7b05ca0e 100644 --- a/Models/Instruments/Upper-ECAM-MSG/ECAM-MSG.xml +++ b/Models/Instruments/Upper-ECAM-MSG/ECAM-MSG.xml @@ -626,26 +626,26 @@ Line6G Line7G Line8G - - 0.2 - 0.4 - 0.2 - - - 0 - 0 - 0 - - - 0 - 0 - 0 - - - 0.2 - 0.4 - 0.2 - + + 0 + 0.543 + 0 + + + 0 + 0 + 0 + + + 0 + 0 + 0 + + + 0 + 0.543 + 0 + diff --git a/Nasal/MCDU/MCDU1.nas b/Nasal/MCDU/MCDU1.nas index 5ab3650f..ca778b4d 100644 --- a/Nasal/MCDU/MCDU1.nas +++ b/Nasal/MCDU/MCDU1.nas @@ -577,7 +577,7 @@ var perfTOInput = func(key) { setprop("/MCDU[0]/scratchpad", ""); } else { var tfs = size(scratchpad); - if (tfs == 9) { + if (tfs >= 7 or tfs <= 9) { var thracc = split("/", scratchpad); var thrred = size(thracc[0]); var acc = size(thracc[1]); diff --git a/Nasal/MCDU/MCDU2.nas b/Nasal/MCDU/MCDU2.nas index 7d086ead..782020ef 100644 --- a/Nasal/MCDU/MCDU2.nas +++ b/Nasal/MCDU/MCDU2.nas @@ -69,9 +69,9 @@ var lskbutton = func(btn) { radnavInput("L2"); } else if (getprop("/MCDU[1]/page") == "CLB") { initInputA("L5"); # Does the same thing as on the INIT page - } else if (getprop("/MCDU[0]/page") == "CRZ") { + } else if (getprop("/MCDU[1]/page") == "CRZ") { initInputA("L5"); - } else if (getprop("/MCDU[0]/page") == "DES") { + } else if (getprop("/MCDU[1]/page") == "DES") { initInputA("L5"); } else { setprop("/MCDU[1]/scratchpad-msg", "1"); @@ -121,7 +121,7 @@ var lskbutton = func(btn) { perfCLBInput("L6"); } else if (getprop("/MCDU[1]/page") == "CRZ") { perfCRZInput("L6"); - } else if (getprop("/MCDU[0]/page") == "DES") { + } else if (getprop("/MCDU[1]/page") == "DES") { perfDESInput("L6"); } else { setprop("/MCDU[1]/scratchpad-msg", "1"); @@ -577,7 +577,7 @@ var perfTOInput = func(key) { setprop("/MCDU[1]/scratchpad", ""); } else { var tfs = size(scratchpad); - if (tfs == 9) { + if (tfs >= 7 or tfs <= 9) { var thracc = split("/", scratchpad); var thrred = size(thracc[0]); var acc = size(thracc[1]);