From 6eec37b1f9cbbbdd2abee62dc8d7c78fbdef6f12 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 10 Apr 2009 18:45:41 +0000 Subject: [PATCH] Don't compute radio station range when nav1 slaved to gps. --- src/Instrumentation/navradio.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5