From: Gary N. <gr...@gm...> - 2011-12-20 23:56:22
|
Stuart, Hopefully others will also confirm, but I'm fairly certain fuel.nas is used only for YASim support. I always swap it out with my own custom routines since it's limited and problematic, but it's useful for early prototyping support. Without it there are no default routines to reset the fuel-consumed-lbs property under engines. Also it's not needed for YASim aircraft lacking normal YASim engine support, such as sailplanes or helicopters. It might be nice if there was an easy way to disable it in such cases, perhaps a simple /sim property that if set, prevents fuel.nas from initializing. I'm thinking fuel-freeze wouldn't serve that purpose well since custom engine/fuel routines (helicopters) might use that property. My $.02 thoughts. -Gary aka Buckaroo On Tue, Dec 20, 2011 at 4:16 PM, Stuart Buchanan <stu...@gm...> wrote: > Hi All, > > I'm investigating > http://code.google.com/p/flightgear-bugs/issues/detail?id=526, which > appears to be a long-standing bug that after fuel starvation it isn't > possible to restart YASim engines. > > The problem appears to be in fuel.nas line 25, which drops out from > making any fuel calculations if the engines aren't consuming any fuel. > Unfortunately this means that there's no opportunity to reset the > out-of-fuel flag. > > I think this line is also intended to drop out for FDMs other than > YASim, which don't use fuel.nas, but instead have their own fuel > management. > > Can anyone confirm that fuel.nas is only used by YASim? > > If so, I'll change the FDM initialization listener to simply never > start the update loops for FDMs other than YASim, and remove the code > that drops out. > > -Stuart > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel |