Bugfix: ensure navradio nav-loc and has-gs properties clear to false when no valid station is tuned / radio is u/s.
This commit is contained in:
parent
38e76a175e
commit
49e477f6a7
1 changed files with 5 additions and 1 deletions
|
@ -368,6 +368,8 @@ void FGNavRadio::clearOutputs()
|
||||||
gs_deflection_deg_node->setDoubleValue(0.0);
|
gs_deflection_deg_node->setDoubleValue(0.0);
|
||||||
gs_deflection_norm_node->setDoubleValue(0.0);
|
gs_deflection_norm_node->setDoubleValue(0.0);
|
||||||
gs_inrange_node->setBoolValue( false );
|
gs_inrange_node->setBoolValue( false );
|
||||||
|
loc_node->setBoolValue( false );
|
||||||
|
has_gs_node->setBoolValue(false);
|
||||||
|
|
||||||
to_flag_node->setBoolValue( false );
|
to_flag_node->setBoolValue( false );
|
||||||
from_flag_node->setBoolValue( false );
|
from_flag_node->setBoolValue( false );
|
||||||
|
@ -892,7 +894,9 @@ void FGNavRadio::search()
|
||||||
_gs = NULL;
|
_gs = NULL;
|
||||||
_dme = NULL;
|
_dme = NULL;
|
||||||
nav_id_node->setStringValue("");
|
nav_id_node->setStringValue("");
|
||||||
|
loc_node->setBoolValue(false);
|
||||||
|
has_gs_node->setBoolValue(false);
|
||||||
|
|
||||||
_sgr->remove( nav_fx_name );
|
_sgr->remove( nav_fx_name );
|
||||||
_sgr->remove( dme_fx_name );
|
_sgr->remove( dme_fx_name );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue