From: curt Date: Mon, 24 Sep 2001 17:43:33 +0000 (+0000) Subject: Extend range of ILS in reverse direction to allow back course approaches. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=85371ee3616f7c4d0b0499d794e19f7cd679b251;p=flightgear.git Extend range of ILS in reverse direction to allow back course approaches. --- diff --git a/src/Cockpit/radiostack.cxx b/src/Cockpit/radiostack.cxx index c07cc6f31..81f4e3725 100644 --- a/src/Cockpit/radiostack.cxx +++ b/src/Cockpit/radiostack.cxx @@ -331,6 +331,12 @@ double FGRadioStack::adjustILSRange( double stationElev, double aircraftElev, return 10 + (35 - offset) * (FG_ILS_DEFAULT_RANGE - 10) / 25; } else if ( offset < 45 ) { return (45 - offset); + } else if ( offset > 170 ) { + return FG_ILS_DEFAULT_RANGE; + } else if ( offset > 145 ) { + return 10 + (offset - 145) * (FG_ILS_DEFAULT_RANGE - 10) / 25; + } else if ( offset > 135 ) { + return (offset - 135); } else { return 0; }