David Culp wrote:
> The problem is that the script is executed while the aircraft's
> heading is still zero, prior to it being oriented with the runway.  Is
> there a way to have the script execute only after the aircraft is
> aligned with the runway?

As an immediate hack, you can set it up to run after a timeout.
Something like this will work:

 SRCPROP = "/orientation/heading-magnetic-deg";
 DSTPROP = "/autopilot/settings/heading-bug-deg";
 DELAY = 1;
 settimer(func { setprop(SRCPROP, getprop(DSTPROP)) }, DELAY);

You will probably need to experiment to find a value of DELAY that
works on all systems.  What is *really* needed here is a way to tell
when "initialization" is done, and hook in a callback for that.  Right
now the various subsystems finish their work at different times, which
causes problems like this one.

Andy

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to