From 5498f259efd8c7e5f0c468f8a4d02d0136cd061b Mon Sep 17 00:00:00 2001 From: hbeni Date: Tue, 30 Aug 2022 08:31:16 +0200 Subject: [PATCH] Fix for #482 (nasal error in mp/dual control) --- Nasal/c182s-aircraft-dual-control.nas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Nasal/c182s-aircraft-dual-control.nas b/Nasal/c182s-aircraft-dual-control.nas index 2c2a0dee..542b8f83 100644 --- a/Nasal/c182s-aircraft-dual-control.nas +++ b/Nasal/c182s-aircraft-dual-control.nas @@ -414,10 +414,10 @@ var copilot_connect_pilot = func (pilot) { func (b) { pilot.getNode("instrumentation/nav[0]/to-flag").setBoolValue(b) }, func (b) { pilot.getNode("instrumentation/nav[0]/in-range").setBoolValue(b) }, func (b) { pilot.getNode("instrumentation/nav[0]/gs-in-range").setBoolValue(b) }, - func (b) { pilot.getNode("instrumentation/nav[1]/from-flag").setBoolValue(b) }, - func (b) { pilot.getNode("instrumentation/nav[1]/to-flag").setBoolValue(b) }, - func (b) { pilot.getNode("instrumentation/nav[1]/in-range").setBoolValue(b) }, - func (b) { pilot.getNode("instrumentation/nav[1]/gs-in-range").setBoolValue(b) }, + func (b) { pilot.getNode("instrumentation/nav[1]/from-flag", 1).setBoolValue(b) }, + func (b) { pilot.getNode("instrumentation/nav[1]/to-flag", 1).setBoolValue(b) }, + func (b) { pilot.getNode("instrumentation/nav[1]/in-range", 1).setBoolValue(b) }, + func (b) { pilot.getNode("instrumentation/nav[1]/gs-in-range", 1).setBoolValue(b) }, ]),