Vivian Meazza wrote: > I'm just working on the fuel gauge for the Spitfire, when I > ralised that I haven't modeled the fuel system correctly. At > present both tanks feed into the engine. What should happen is > that the upper tank feeds the lower tank which feeds the > engine. Is there any built-in way of doing this?
One way to do this is to always make sure the lower tank is selected, and the uper one is not. Then have a Nasal timer fire at some sane frequency (mayby 5Hz) or whatnot that takes fuel out of the top tank and adds it to the bottom one according to the current pump configuration. It's not hard, really. You can look at the existing fuel.nas code for examples. The only gotcha I can think of is that the frame rate isn't constant: you want to use the time-elapsed property to calculate the amount of fuel to transfer, instead of assuming a constant amount per iteration. Andy _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel