1
0
Fork 0

A couple fixes so the nav/ils heading hold will work again.

This commit is contained in:
curt 2003-07-07 21:19:46 +00:00
parent 19d08953e3
commit 85de2452a3
2 changed files with 5 additions and 3 deletions

View file

@ -532,7 +532,8 @@ FGAutopilot::update (double dt)
}
// determine the target radial in "true" heading
double tgt_radial = current_radiostack->get_navcom1()->get_nav_radial();
double tgt_radial
= current_radiostack->get_navcom1()->get_nav_target_radial();
if ( current_radiostack->get_navcom1()->get_nav_loc() ) {
// ILS localizers radials are already "true" in our
// database

View file

@ -738,7 +738,8 @@ double
FGNavCom::get_nav_reciprocal_radial () const
{
double recip = nav_radial + 180;
if (recip >= 360)
recip = 360;
if ( recip >= 360 ) {
recip -= 360;
}
return recip;
}