Re: [Flightgear-devel] multiple instances of given ai aircraft
After giving this some good thought i think the most proper way to deal with this is to allow only 1 instance of an aircraft based on it's tail registration PH-ONE for example. In doing so, we hand responsibility over to the creator of the traffic file. This will make sure (just like in real life) a unique aircraft can only exists once in the (AI) 3d world. An other problem needs to be solved though. If only 1 instance of a unique aircraft can exist than this means that at some point the traffic manager needs to: 1) Clean up to current instance before creating the next (not very elegant but could be necessary if arrival and departure airport are not the same). 2) Reset fuel etc and overwrite it's flight plan. (there should be a minimum amount of time between recovery and departure) I'll have to see what the possibilities are though. -Jorg -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] multiple instances of given ai aircraft
Hi, On Tuesday 17 November 2009 11:08:57 pm Alex Romosan wrote: Gijs de Rooy gijsr...@hotmail.com writes: What I see on your pictures and know from my own encounters with such aircraft is that they do not fly, as in flying an airplane. They just hover above the ground. if that's the case (and it seems to be because i looked and the airplane velocities and they were all 0) then it would make sense to draw the airplane only 30 mins before the scheduled departure date since it will eliminate all these conflicts (as i tried to do in my patch). unfortunately i still haven't seen any of those planes take off. First of all, I'm sorry for not responding any sooner. I'd wished to reply a little earlier, but the busy days ain't over yet. ... Indeed what you are observing here is indeed not a result of the multiple call signs, but a result of the new elevation calculation code. Parked aircraft are typically placed at unique locations, however, whenever an airport doesn't have sufficient parking space left, the remaining aircraft will be placed at a default location (currently, the airport's center point). This used to work resonably well, but now that AI aircraft are also included in the elevation calculations, each time an aircraft checks for the current ground elevation, it gets placed on top of highest one above. Because ground elevation checks are done intermittently, each aircraft is placed on top of the others in a semi random way, leading to the olleke bolleke staggered climbing that Gijs referred to. Since all these aircraft at US airports currently only have one destination (EHAM), your best chances of seeing them move would be late afternoon, early evening. Because there's only one destination, there's also only one (or a very limited number) of departure(s) every day. Cheers, Durk -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] multiple instances of given ai aircraft
The fix that has been proposed will solve the problem, but I really enjoyed watching the flightline filled with F-16's @ EHVK. It would be a shame if they would only appear if scheduled for departure and only within 30 minutes of that time. I will see if I can come up with a better idea/fix Regards, Jorg 2009/11/17 Alex Romosan romo...@sycorax.lbl.gov Gijs de Rooy gijsr...@hotmail.com writes: What I see on your pictures and know from my own encounters with such aircraft is that they do not fly, as in flying an airplane. They just hover above the ground. if that's the case (and it seems to be because i looked and the airplane velocities and they were all 0) then it would make sense to draw the airplane only 30 mins before the scheduled departure date since it will eliminate all these conflicts (as i tried to do in my patch). unfortunately i still haven't seen any of those planes take off. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] multiple instances of given ai aircraft
Hi Alex, On Tuesday 17 November 2009 03:19:59 am Alex Romosan wrote: while flying out of jfk today i noticed once again multiple instances of a given ai aircraft. looking at the properties tree i noticed that there were multiple aircraft with the same call sign. after a bit of detective work i noticed that the number of aircrafts corresponds to the number of entries for that given aircraft in AI/Traffic. For example Delta0080 is listed 7 times departing from jfk, once for each day of the week, and that's how many aircraft were drawn on the screen. Your detective work is correct. The scheduler tries to assign flights to as many aircraft as possible. In the current AI traffic demo, I've predominantly specified flights to and from EHAM. In case of Aircraft based at JFK, this does indeed mean that the first aircraft is assigned today's return flight to EHAM, the second aircraft tomorrow's, etc etc. until all flights are assigned. which basically creates the AI model only if the departure time is 30 mins or less from now. i don't know if this is the correct solution, but i believe the reason we see multiple instances of a given AI aircraft is because we draw a new plane for each entry in the schedule. hope this helps. The most proper way to fix this would be to define more flights, so that delta airlines would also fly to other destinations, which would significantly reduce the number of duplicate flight numbers. But, admittedly, that is a lot of work... Just out of curiosity, is there a specific problem that you try to address? I.e. a problem with multiple aircraft of the same call sign in the property tree, or multiple AI aircraft with similar call signs, showing up on the radar? One thing that I noticed a while ago is that all the inactive flights are still showing up on the radar. To prevent this, we should probably deactivate the transponder of these inactive aircraft. I'm not too familiar with the internal workings of the radar, but I don't think that that should be too hard. Hope this clarifies things a bit. Cheers, Durk -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] multiple instances of given ai aircraft
Durk Talsma d.tal...@xs4all.nl writes: Just out of curiosity, is there a specific problem that you try to address? I.e. a problem with multiple aircraft of the same call sign in the property tree, and i forgot to mention, all the duplicate aircraft have the same call sign in the property tree and fly together as one as you can see in the pictures i mentioned in the previous post. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] multiple instances of given ai aircraft
Hi, From: romo...@sycorax.lbl.gov well, you get multiple aircraft flying together as one. i posted a picture a while ago: To clear some things a little more up. What I see on your pictures and know from my own encounters with such aircraft is that they do not fly, as in flying an airplane. They just hover above the ground. Multiple aircraft are loaded at the same parking area. Due to the solid AI models, they all try to get on top of eachother, causing them to climb into the air like olleke-bolleke (Durk knows what I mean ;) )... Cheers, Gijs _ Het laatste nieuws, shownieuws en voetbalnieuws op MSN.nl http://nl.msn.com/-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] multiple instances of given ai aircraft
Gijs de Rooy gijsr...@hotmail.com writes: What I see on your pictures and know from my own encounters with such aircraft is that they do not fly, as in flying an airplane. They just hover above the ground. if that's the case (and it seems to be because i looked and the airplane velocities and they were all 0) then it would make sense to draw the airplane only 30 mins before the scheduled departure date since it will eliminate all these conflicts (as i tried to do in my patch). unfortunately i still haven't seen any of those planes take off. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] multiple instances of given ai aircraft
while flying out of jfk today i noticed once again multiple instances of a given ai aircraft. looking at the properties tree i noticed that there were multiple aircraft with the same call sign. after a bit of detective work i noticed that the number of aircrafts corresponds to the number of entries for that given aircraft in AI/Traffic. For example Delta0080 is listed 7 times departing from jfk, once for each day of the week, and that's how many aircraft were drawn on the screen. after trying to understand the scheduler code i think i finally came up with a patch: --- src/Traffic/Schedule.cxx3 Sep 2009 20:18:34 - 1.40 +++ src/Traffic/Schedule.cxx17 Nov 2009 02:15:32 - @@ -372,7 +372,7 @@ SG_LOG (SG_GENERAL, SG_DEBUG, Traffic manager: registration is scheduled for a flight from dep-getId() to arr-getId() . Current distance to user: distanceToUser); - if (distanceToUser TRAFFICTOAIDISTTOSTART) + if (distanceToUser TRAFFICTOAIDISTTOSTART ((*i)-getDepartureTime()-now1800)) { string flightPlanName = dep-getId() + string(-) + arr-getId() + string(.xml); which basically creates the AI model only if the departure time is 30 mins or less from now. i don't know if this is the correct solution, but i believe the reason we see multiple instances of a given AI aircraft is because we draw a new plane for each entry in the schedule. hope this helps. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel