From da6104dc5a40e47eeb0bfe204fbc59d1736d2d5c Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Fri, 24 Dec 2021 20:04:55 +0000 Subject: [PATCH] RMP: add extra frequency digit to ADF. ADF power supply: add 2 second BITE after power off > 2 second --- Models/FlightDeck/a320.flightdeck.xml | 10 ++-- Nasal/Panels/rmp.nas | 8 +-- Systems/a320-misc.xml | 78 +++++++++++++++++++++++++++ Systems/instrumentation.xml | 4 +- Systems/libraries.xml | 8 +-- 5 files changed, 92 insertions(+), 16 deletions(-) diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index 3cc1bb9b..ac9583af 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -151,7 +151,7 @@ property-adjust instrumentation/ddrmi/vor-adf-1 - -1 + 0 1 @@ -163,8 +163,7 @@ ddrmi_vor_adf_select_1 instrumentation/ddrmi/vor-adf-1 - -190 - 045 + 090 1 0 @@ -183,7 +182,7 @@ property-adjust instrumentation/ddrmi/vor-adf-2 - -1 + 0 1 @@ -195,8 +194,7 @@ ddrmi_vor_adf_select_2 instrumentation/ddrmi/vor-adf-2 - -1-90 - 0-45 + 0-90 1 0 diff --git a/Nasal/Panels/rmp.nas b/Nasal/Panels/rmp.nas index 21cb823e..29545a27 100644 --- a/Nasal/Panels/rmp.nas +++ b/Nasal/Panels/rmp.nas @@ -277,11 +277,11 @@ var update_displays_nav = func(nav) { stby_display_rmp2.setValue(sprintf("%3.2f", stby_vor2.getValue())); } } else if (nav == 5 and chan1 == "adf") { - act_display_rmp1.setValue(sprintf("%4.0f", act_adf1.getValue())); - stby_display_rmp1.setValue(sprintf("%4.0f", stby_adf1.getValue())); + act_display_rmp1.setValue(sprintf("%4.2f", act_adf1.getValue())); + stby_display_rmp1.setValue(sprintf("%4.2f", stby_adf1.getValue())); } else if (nav == 6 and chan2 == "adf") { - act_display_rmp2.setValue(sprintf("%4.0f", act_adf2.getValue())); - stby_display_rmp2.setValue(sprintf("%4.0f", stby_adf2.getValue())); + act_display_rmp2.setValue(sprintf("%4.2f", act_adf2.getValue())); + stby_display_rmp2.setValue(sprintf("%4.2f", stby_adf2.getValue())); } } diff --git a/Systems/a320-misc.xml b/Systems/a320-misc.xml index 1ef588f9..03abddb2 100644 --- a/Systems/a320-misc.xml +++ b/Systems/a320-misc.xml @@ -39,6 +39,84 @@ + + + + + + /systems/electrical/bus/ac-ess-shed ge 110 + + + + + /instrumentation/adf[0]/power-supply + 100 + 0.5 + + + + /instrumentation/adf[0]/power-supply + 0.5 + 100 + + + + + + /instrumentation/adf[0]/power-supply-bite-timer eq 1 + + + /instrumentation/adf[0]/power-supply-bite-enable eq 0 + + + + + + + /instrumentation/adf[0]/power-supply-was-off eq 0 + /instrumentation/adf[0]/power-supply-bite-timer eq 1 + + + + + + + /systems/electrical/bus/ac-2 ge 110 + + + + + /instrumentation/adf[1]/power-supply + 100 + 0.5 + + + + /instrumentation/adf[1]/power-supply + 0.5 + 100 + + + + + + /instrumentation/adf[1]/power-supply-bite-timer eq 1 + + + /instrumentation/adf[1]/power-supply-bite-enable eq 0 + + + + + + + /instrumentation/adf[1]/power-supply-was-off eq 0 + /instrumentation/adf[1]/power-supply-bite-timer eq 1 + + + + + diff --git a/Systems/instrumentation.xml b/Systems/instrumentation.xml index de7bba1e..11f178d6 100644 --- a/Systems/instrumentation.xml +++ b/Systems/instrumentation.xml @@ -9,14 +9,14 @@ adf 0 - /systems/electrical/bus/ac-ess-shed + /instrumentation/adf[0]/power-supply-node 109.9 adf 1 - /systems/electrical/bus/ac-2 + /instrumentation/adf[1]/power-supply-node 109.9 diff --git a/Systems/libraries.xml b/Systems/libraries.xml index 2809ae22..85dbcb5f 100644 --- a/Systems/libraries.xml +++ b/Systems/libraries.xml @@ -1007,7 +1007,7 @@ /instrumentation/ddrmi/vor-adf-1 - -1 + 0 /instrumentation/adf[0]/in-range @@ -1110,7 +1110,7 @@ /instrumentation/ddrmi/vor-adf-2 - -1 + 0 /instrumentation/adf[1]/in-range @@ -1186,7 +1186,7 @@ /instrumentation/ddrmi/vor-adf-1 - -1 + 0 /instrumentation/adf[0]/in-range @@ -1246,7 +1246,7 @@ /instrumentation/ddrmi/vor-adf-2 - -1 + 0 /instrumentation/adf[1]/in-range