From 8ed16a4de2e4f2b8f5b1b7d0986126d10c40aec7 Mon Sep 17 00:00:00 2001 From: "Curtis L. Olson" Date: Fri, 31 Dec 2010 15:31:04 -0600 Subject: [PATCH] Project "fly-by" vantage point ahead based on ground track direction instead of aircraft body heading. This works better when there is significant cross wind or side slipping. --- Nasal/view.nas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Nasal/view.nas b/Nasal/view.nas index 3642ac2e3..acc0c346d 100644 --- a/Nasal/view.nas +++ b/Nasal/view.nas @@ -252,7 +252,8 @@ var fly_by_view_handler = { me.latN = props.globals.getNode("/sim/viewer/latitude-deg", 1); me.lonN = props.globals.getNode("/sim/viewer/longitude-deg", 1); me.altN = props.globals.getNode("/sim/viewer/altitude-ft", 1); - me.hdgN = props.globals.getNode("/orientation/heading-deg", 1); + # me.hdgN = props.globals.getNode("/orientation/heading-deg", 1); + me.hdgN = props.globals.getNode("/instrumentation/gps/indicated-track-true-deg", 1); setlistener("/sim/signals/reinit", func(n) { n.getValue() or me.reset() }); setlistener("/sim/crashed", func(n) { n.getValue() and me.reset() });