From 33058511def350653ea01459a2161a3533531555 Mon Sep 17 00:00:00 2001 From: jmt Date: Sat, 14 Nov 2009 11:10:34 +0000 Subject: [PATCH] Dave Perry: Allows using a nasal filter to smoothly park the gs needle when out of range or frequency changes to a station w/o gs. --- src/Instrumentation/navradio.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index 4dace88a0..31eb2f461 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -575,6 +575,8 @@ void FGNavRadio::updateGlideSlope(double dt, const SGVec3d& aircraft, double sig if (!_gs || !inrange_node->getBoolValue()) { gs_dist_node->setDoubleValue( 0.0 ); gs_inrange_node->setBoolValue(false); + _gsNeedleDeflection = 0.0; + _gsNeedleDeflectionNorm = 0.0; return; } @@ -584,6 +586,8 @@ void FGNavRadio::updateGlideSlope(double dt, const SGVec3d& aircraft, double sig gs_inrange_node->setBoolValue(gsInRange); if (!gsInRange) { + _gsNeedleDeflection = 0.0; + _gsNeedleDeflectionNorm = 0.0; return; } -- 2.39.5