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.
This commit is contained in:
parent
18a21bf61b
commit
8ed16a4de2
1 changed files with 2 additions and 1 deletions
|
@ -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() });
|
||||
|
|
Loading…
Add table
Reference in a new issue