From: curt Date: Fri, 10 Apr 2009 18:45:41 +0000 (+0000) Subject: Don't compute radio station range when nav1 slaved to gps. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6eec37b1f9cbbbdd2abee62dc8d7c78fbdef6f12;p=flightgear.git Don't compute radio station range when nav1 slaved to gps. --- diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index 021447007..bb107b47d 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -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 ) {