]> git.mxchange.org Git - flightgear.git/commitdiff
This module was filtering out all stations with localizer offset
authordavid <david>
Mon, 15 Apr 2002 15:28:11 +0000 (15:28 +0000)
committerdavid <david>
Mon, 15 Apr 2002 15:28:11 +0000 (15:28 +0000)
>90deg, even though src/Cockpit/radiostack.cxx has code to deal with
those; as a result, no backcourses were getting through.

This fix allows the common case of backcourses to work again, but
breaks the uncommon case of a runway using the same frequency for two
separate localizers.  That special case will have to be detected
somehow.  Still, this fixes more approaches than it breaks.

src/Navaids/ilslist.cxx

index 6b7dcfc3573d9c40a7e21eafa2a95c1d46bf6b38..84019505182a536d2802163400b3a919f82e2820 100644 (file)
@@ -155,6 +155,9 @@ bool FGILSList::query( double lon, double lat, double elev, double freq,
        if ( d < (2* FG_ILS_DEFAULT_RANGE * SG_NM_TO_METER 
                  * 2 * FG_ILS_DEFAULT_RANGE * SG_NM_TO_METER) ) {
 
+           *ils = *current;
+           return true;
+#if 0
             // Get our bearing from this station.
             double reciprocal_bearing, dummy;
             double a_lat_deg = lat * SGD_RADIANS_TO_DEGREES;
@@ -175,6 +178,7 @@ bool FGILSList::query( double lon, double lat, double elev, double freq,
                 *ils = *current;
                 return true;
             }
+#endif
        }
     }