On Mon, Feb 28, 2011 at 10:27 PM, syd adams <[email protected]> wrote: > Me again ... > As Heiko mentioned , my S76C broke due to a fuel.nas change . If the > change was mentioned here , I guess i missed it completely. > After some experimentation, I finally got it running again ...it > wouldn't start due to empty tanks , and trying to fill them with the > dialog didn't work ....they would immediately snap back to 0.I removed > my nasal fuel routine , and everything worked again ,except with no > fuel consumption now... would I be correct in assuming that I only > have to supply the amount of fuel consumed per frame and fuel.nas will > manage the fuel flow ? > Thanks agaian, > Syd
Syd, I don't have the latest and greatest fuel.nas so there may be changes that affect the following: in general for a conventional YASim aircraft with one or more engines, the FDM increments each engine's fuel-consumed-lbs every frame (or whatever update period it is using), and that value continues to increase until fuel.nas (or whatever) does something with it. Typically it iterates over each engine, copies the fuel-consumed value, decrements the amount across the tanks (the default is a cross-feed like system), and resets the fuel-consumed value to 0. Since a YASim helicopter doesn't use a standard defined YASim engine, if you provided code that continually increments an 'engine' fuel-consumed-lbs value (or some other fuel-consumed value you define) and pointed fuel.nas to that value, you should be able to get it to do the rest. It's a little different from directly managing fuel levels in tanks the way I think you used to do the s76c. In that case you directly decremented tanks, here, you'd kinda do the opposite-- increment a fuel-consumed value, feed that to fuel.nas, and let it do it's tank-management thing. Hope this makes some kind of sense and is useful. -Gary ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

