13,282
edits
m (Update forum links) |
m (cat: Software; etc) |
||
| Line 15: | Line 15: | ||
== Status (02/2013) == | == Status (02/2013) == | ||
A basic proof of concept has been shown to work properly (with some bugs and other issues remaining), the project is currently put on hold because of the recent advances in the [[HLA]] department, see [http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg39030.html] for further information. | A basic proof of concept has been shown to work properly (with some bugs and other issues remaining), the project is currently put on hold because of the recent advances in the [[HLA]] department, see [http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg39030.html] for further information. | ||
== Idea == | == Idea == | ||
| Line 31: | Line 30: | ||
== Objective == | == Objective == | ||
Implement a new FlightGear component that allows using web data feeds (JSON) for aircraft/vessel tracking (TCAS/AIS based) to populate the FlightGear world using the FlightGear [[Multiplayer]] system via an extended version of [[fgms]]. | Implement a new FlightGear component that allows using web data feeds (JSON) for aircraft/vessel tracking (TCAS/AIS based) to populate the FlightGear world using the FlightGear [[Multiplayer]] system via an extended version of [[fgms]]. | ||
| Line 40: | Line 38: | ||
* http://shipfinder.co/ | * http://shipfinder.co/ | ||
* http://www.marinetraffic.com/ais/ | * http://www.marinetraffic.com/ais/ | ||
== Roadmap == | == Roadmap == | ||
=== Milestone 1: Move FGAIS to a background thread {{Done}} (28/10/2012) === | === Milestone 1: Move FGAIS to a background thread {{Done}} (28/10/2012) === | ||
=== Milestone 2: Send packets back to FlightGear {{Done}} (31/10/2012) === | === Milestone 2: Send packets back to FlightGear {{Done}} (31/10/2012) === | ||
| Line 94: | Line 89: | ||
=== Milestone: Get rid of FlightGear warnings/errors {{Pending}} === | === Milestone: Get rid of FlightGear warnings/errors {{Pending}} === | ||
* the MP pilot list is not able to deal with 190+ pilots: it shows "too many live PUI interfaces" and even causes segfaults in FG ... | * the MP pilot list is not able to deal with 190+ pilots: it shows "too many live PUI interfaces" and even causes segfaults in FG ... | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| Line 162: | Line 156: | ||
Also we need to change the download() in order to make a POST request with Curl... (I've no idea how it's doable for now) | Also we need to change the download() in order to make a POST request with Curl... (I've no idea how it's doable for now) | ||
I suggest to continue to use the public API for now in order to help us to continue to experiment movement/velocity... | I suggest to continue to use the public API for now in order to help us to continue to experiment movement/velocity... | ||
Then implement the new API directly in your "multi-providers manager". When we are ready to switch to the new API we just need to delete the download() and related thing in fg_aimgr.cxx then start to use PlanefinderProvider.cxx, JSONParser.hxx etc etc | Then implement the new API directly in your "multi-providers manager". When we are ready to switch to the new API we just need to delete the download() and related thing in fg_aimgr.cxx then start to use PlanefinderProvider.cxx, JSONParser.hxx etc etc | ||
== Status (10/2012) == | == Status (10/2012) == | ||
| Line 180: | Line 171: | ||
* create MP packets for each AI traffic | * create MP packets for each AI traffic | ||
* send MP packets to FG client as MP traffic | * send MP packets to FG client as MP traffic | ||
<!-- | <!-- | ||
| Line 187: | Line 177: | ||
* FGMS part works as expected | * FGMS part works as expected | ||
--> | --> | ||
=== Position Computation === | === Position Computation === | ||
* groundspeed seems still way off, can be easily seen when watching landing aircraft | * groundspeed seems still way off, can be easily seen when watching landing aircraft | ||
* vertical speed / altitude also needs improvements, sometimes showing -80000 ft :-) | * vertical speed / altitude also needs improvements, sometimes showing -80000 ft :-) | ||
=== FGAIS Issues === | === FGAIS Issues === | ||
* Support multiple clients without segfaulting... {{Pending}} | * Support multiple clients without segfaulting... {{Pending}} | ||
* Altitude need to be computed with the climb rate calculated with the updateAIAircraf(); {{Done}} | * Altitude need to be computed with the climb rate calculated with the updateAIAircraf(); {{Done}} | ||
| Line 235: | Line 222: | ||
Thus, the positionMap should contain more positions. | Thus, the positionMap should contain more positions. | ||
The other problem is that our worker thread currently destroys previously computed messages stored in the positionMap. | The other problem is that our worker thread currently destroys previously computed messages stored in the positionMap. | ||
However, it would make sense to "append" new positions to the buffer. Like a FIFO queue or a vector, so that we can: | However, it would make sense to "append" new positions to the buffer. Like a FIFO queue or a vector, so that we can: | ||
# fill the positionmap with messages for more than 60 seconds (e.g. 90) | |||
# or start the background thread much earlier than after 60 seconds (i.e. 30) | |||
# and merely create missing packets, without overwriting the old positionMap | |||
That would ensure that the main thread has still enough data, even though our background thread is limited to run only at 1 minute intervals. Otherwise the main thread blocks, because it has to wait for new data from the positionMap. | That would ensure that the main thread has still enough data, even though our background thread is limited to run only at 1 minute intervals. Otherwise the main thread blocks, because it has to wait for new data from the positionMap. | ||
In order to see a smooth movement of our AI traffic we need to calculate a fictive velocity, this should be done in recompute_aircraft() {{Done}} | In order to see a smooth movement of our AI traffic we need to calculate a fictive velocity, this should be done in recompute_aircraft() {{Done}} | ||
| Line 253: | Line 237: | ||
== Planned Features == | == Planned Features == | ||
== Changelog == | == Changelog == | ||
* Start using SimGear's SGThread {{Done}} | * Start using SimGear's SGThread {{Done}} | ||
| Line 319: | Line 302: | ||
* http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg35295.html | * http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg35295.html | ||
* http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg31351.html | * http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg31351.html | ||
[[Category:Software]] | |||