1
0
Fork 0

Don't compute radio station range when nav1 slaved to gps.

This commit is contained in:
curt 2009-04-10 18:45:41 +00:00 committed by Tim Moore
parent d83286354c
commit 6eec37b1f9

View file

@ -460,7 +460,10 @@ FGNavRadio::update(double dt)
signal_quality_norm, dt );
}
signal_quality_norm_node->setDoubleValue( signal_quality_norm );
inrange = signal_quality_norm > 0.2;
if ( ! nav_slaved_to_gps_node->getBoolValue() ) {
/* not slaved to gps */
inrange = signal_quality_norm > 0.2;
}
inrange_node->setBoolValue( inrange );
if ( !is_loc ) {