[Flightgear-devel] Generic aar.nas/AI properties
Hello all! First off, when linking the B-2(yasim) to the generic aar.nas I experienced a constant switching of the engines/out-of-fuel property which unsurprisingly results in low thrust. Could this be related to the broken fuel-consumed-lbs property (of yasim?) that is jumping around close to zero? Secondly, is live manipulating of AI model properties possible at the moment? In the flightgear property browser I found orientation/true-heading-deg and some radar properties but I think it would come in handy to be able to manipulate speed, altitude and waypoints (and maybe more Wink) for an AI model. So it would be possible to spawn an AI tanker at a desired location or be able to launch testbeds or rockets from a plane and direct it to a desired location. I am using an end feb build of osg/fg. Maybe I missed something, thanks in advance, markus - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Generic aar.nas/AI properties
* Markus Zojer -- Thursday 29 March 2007: First off, when linking the B-2(yasim) to the generic aar.nas I experienced a constant switching of the engines/out-of-fuel property which unsurprisingly results in low thrust. Fixed. This was a bug in aar.nas, that was triggered by the B-2 occasionally not consuming *any* fuel between two loop runs, which seems to be a bug elsewhere ... m. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Generic aar.nas/AI properties
Markus Zojer Hello all! First off, when linking the B-2(yasim) to the generic aar.nas I experienced a constant switching of the engines/out-of-fuel property which unsurprisingly results in low thrust. Could this be related to the broken fuel-consumed-lbs property (of yasim?) that is jumping around close to zero? Secondly, is live manipulating of AI model properties possible at the moment? In the flightgear property browser I found orientation/true-heading-deg and some radar properties but I think it would come in handy to be able to manipulate speed, altitude and waypoints (and maybe more Wink) for an AI model. So it would be possible to spawn an AI tanker at a desired location or be able to launch testbeds or rockets from a plane and direct it to a desired location. Several AI tankers are already available - you can use any of these: --ai-scenario=refueling_demo (KC135-E) --ai-scenario=refueling_demo_1(KC135-E} --ai-scenario=refueling_demo_2(KA6-D) If these don't suit - then modify them to your taste. We only have Ballistic objects atm, but you can use this to simulate unguided rockets. I have in mind to do something about guided weapons in the future. Vivian - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Generic aar.nas/AI properties
Hi! Looking at aar.nas I noticed some seemingly unnecessary elsif usage, wonder if they are there for a reason: if (size(selected_tanks) == 0) { } elsif (consumed = 0) { } elsif (consumed 0) { === HERE } ... and ... if (capacity - lbs = fuel_per_tank) { } elsif (capacity - lbs fuel_per_tank) { === HERE } Also, I think there might be a bug here: fuel_per_tank is a negative number! Thus the first condition will always be true. As we are in the refuelling branch, I think it would make the code more readable if a positive fuel_per_tank was used. Another minor problem: during refuelling if one of the tanks fills up in the current iteration, the extra fuel will not be distributed among the other tanks. As this function is called often and thus processes small amounts of fuel at a time, this does not really make a difference. (Plus the tanks will usually fill up at the same time.) Might be completely wrong, don't hesitate to kick me :) Greets, Csaba - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Generic aar.nas/AI properties
* Csaba Halász -- Thursday 29 March 2007: if (size(selected_tanks) == 0) { } elsif (consumed = 0) { } elsif (consumed 0) { === HERE Yeah, that's now redundant. It wasn't until a few hours ago. Didn't look at that. if (capacity - lbs = fuel_per_tank) { } elsif (capacity - lbs fuel_per_tank) { === HERE True. No idea where this comes from. Also, I think there might be a bug here: fuel_per_tank is a negative number! Sheesh. Will check. This file was converted from an older version, and apparently I added a few extra bugs. Thanks for reporting. m. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel