* James Turner -- Wednesday 17 December 2008: > > + var KT2MPS = 0.5144444444; # knots to m/s
> Personally I think all these constants would be easier to > read if they were written the same way as the Simgear ones, > i.e MPS_TO_KT, NM_TO_M and so on. I find them equally easy to read and decided to use the way that YASim uses (from the same author as Nasal, as you probably know). See ./src/FDM/YASim/FGFDM.cpp. I only made the DEG2RAD even shorter (which might indeed have been a mistake). But you can easily do something like this in your Nasal code (once there is something like "your Nasal code", that is ;-): var MPS_TO_KT = MPS2KT; What do other Nasal developers think? I'm willing to change it if others have problems with that, too. (And to change all occurrences in the repository.) BTW (or BY_THE_WAY, as some say): the constants in globals.nas aren't meant to become an exhaustive set of conversion factors, and I won't add some just for the sake of it. They have to be actually used by real code. m. :-) ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

