For me the Nasal function looks strange. I can't understand what the addition of 0.001 to freq does? For me it seems to be a waste of precious CPU time.
Jari On 2010-01-28 21.39, Curtis Olson wrote: > Nasal is like C, C++, perl, and php in many ways so if you can read any > of those, you should be pretty confident that what you think nasal is > doing is what it's actually doing. Writing nasal code from scratch is > harder of course because it requires knowledge of all the picky language > syntax details. > > Curt. > > > On Thu, Jan 28, 2010 at 2:21 PM, Jari Häkkinen wrote: > > 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 > <mailto: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 > <mailto:Flightgear-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > > > > > -- > Curtis Olson: http://baron.flightgear.org/~curt/ > > > > ------------------------------------------------------------------------------ > 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