// determine our current radial position relative to the
// navaid in "true" heading.
cur_radial = current_radiostack->get_nav1_heading();
Nav radial is the angle between the reference line with that line's heading and the line from the plane to the ILS or VOR antenna no matter what the plane's heading is which is commented as
// determine the target radial in "true" heading
The nav_radial seems to be the target radial in newauto.cxx,
tgt_radial = current_radiostack->get_nav1_radial() and the heading needle deflection becomes the difference between our current heading and the line connecting our vehicle to the ILS antenna which is the line with the target radial and is handled in Cockpit/navcom.cxx as
r = nav_heading - nav_radial;
return r;
for the needle deflection and in autopilot code
in the comments it writes
// determine the target heading to fly to intercept the
// tgt_radial
TargetHeading = tgt_radial + adjustment;
In one of the mails I read something like
At 5 miles X 2 degrees deviation it was commanding a 10
degree turn so the order given by code to the aircraft is to turn with the amount of difference equal to the adjustmant part calculated in the autopilot code from its current heading to intersect the target radial.
Thanks
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
