1
0
Fork 0

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:
jmt 2010-01-28 09:42:57 +00:00 committed by Tim Moore
parent 38e76a175e
commit 49e477f6a7

View file

@ -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,6 +894,8 @@ 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 );