X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fnavradio.cxx;h=073e28621429d085fdf99d366a31770e8f368e67;hb=9d995907db00728da7eac9297ecbab93ed8a7400;hp=cc4acedd821c94cbe336b2bcf545c81db1c5410b;hpb=2013f7149d239ad6dccd2fc53fb77c4a0c85e484;p=flightgear.git diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index cc4acedd8..073e28621 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -105,6 +105,7 @@ static std::auto_ptr static_terminalRangeInterp, FGNavRadio::FGNavRadio(SGPropertyNode *node) : _operable(false), play_count(0), + _nav_search(true), _last_freq(0.0), target_radial(0.0), effective_range(0.0), @@ -571,7 +572,7 @@ void FGNavRadio::updateReceiver(double dt) } // of false courses disabled const double VOR_FULL_ARC = 20.0; // VOR is -10 .. 10 degree swing - _cdiDeflection *= VOR_FULL_ARC / _localizerWidth; // increased localiser sensitivity + _cdiDeflection *= VOR_FULL_ARC / _localizerWidth; // increased localizer sensitivity if (backcourse_node->getBoolValue()) { _cdiDeflection = -_cdiDeflection; @@ -582,7 +583,7 @@ void FGNavRadio::updateReceiver(double dt) r = ( r<0.0 ? -r-180.0 : -r+180.0 ); } _cdiDeflection = r; - } // of non-localiser case + } // of non-localizer case SG_CLAMP_RANGE(_cdiDeflection, -10.0, 10.0 ); _cdiDeflection *= signal_quality_norm;