]> git.mxchange.org Git - flightgear.git/commitdiff
Extend range of ILS in reverse direction to allow back course approaches.
authorcurt <curt>
Mon, 24 Sep 2001 17:43:33 +0000 (17:43 +0000)
committercurt <curt>
Mon, 24 Sep 2001 17:43:33 +0000 (17:43 +0000)
src/Cockpit/radiostack.cxx

index c07cc6f31ddde30fb1bd0f84d0c97f10bf51b0cd..81f4e372504b7ad748ec4df553ac741078610f9f 100644 (file)
@@ -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;
     }