A couple fixes so the nav/ils heading hold will work again.
This commit is contained in:
parent
19d08953e3
commit
85de2452a3
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue