From 774c738ab7e7326c8bef45e070ba22d95ff76015 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Thu, 17 Feb 2022 17:42:18 +0000 Subject: [PATCH] Turn on TERR ON ND after a GPWS warning --- Nasal/Libraries/libraries.nas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Nasal/Libraries/libraries.nas b/Nasal/Libraries/libraries.nas index fbe52f13..da3da70b 100644 --- a/Nasal/Libraries/libraries.nas +++ b/Nasal/Libraries/libraries.nas @@ -192,6 +192,13 @@ var GPWSAlertStatus = 0; var gpws_alert_watch = maketimer(0.8, func() { if (GPWS.warning.getValue()) { GPWSAlertStatus = 2; # MODE2 - warning - RED + + # Turn on Terr on ND after a GPWS warning + setprop("/controls/switches/terr_on_nd_l", 1); + setprop("/instrumentation/efis/inputs/terr", 1); + setprop("/controls/switches/terr_on_nd_r", 1); + setprop("/instrumentation/efis[1]/inputs/terr", 1); + } else if (GPWS.alert.getValue()) { GPWSAlertStatus = 1; # MODE1 - caution - YELLOW } else {