I can't read Nasal so I can't say if the function below is correct. For what it is worth: A frequency between 108.100 and 111.950 (including end points) is a localizer frequency if the first decimal is an odd number.
Jari On 2010-01-28 04.45, Ron Jensen wrote: > On Wed, 2010-01-27 at 09:06 +0000, Pete Morgan wrote: >> I just noticed the info below about localiser on the "Flight Simulation >> Naviagtion" site >> http://www.navfltsm.addr.com/ >> >> Is there an easy way to determine is the NAV is a Lcoaliser, I cant see >> that in Prop tree. >> >> pete > > Localizers are found on a few of the NAV frequencies: > > http://en.wikipedia.org/wiki/Instrument_landing_system#Frequency_list > > Here is a nasal function to determine if a frequency is a localizer. It > accepts a frequency in megahertz and returns "1" if the frequency is an > ILS frequency. > > > var isILS=func(freq) { > if(freq< 108.10) return 0; > if(freq> 111.95) return 0; > var bar=int((freq+0.001)*10)-int(freq)*10; > return(bits.test(bar,0)); > } > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel