If I understand correctly :
HLA is a standard network protocol used by multiple (dozens? millions?) software to send data over network. For example (stupid) : if Call Of Duty use HLA to send data over network, FG should be able to display Call Of Duty player ?
"Call Of Duty" is not really a good example because I see that HLA protocol is mostly reserved for real time simulator software.
Indeed it should be interesting to use this protocol (if my understanding is correct), but concretely how many real time simulator software exist un the world ?
We can already consider every flight simulator software :
- FlightGear (of course
)
- Flight Simulator (development is now abandonned IIRC)
- X-Plane
- Microsoft Flight (not sure that they plan to implement HLA)
- Flight Legacy (fly simvol)
submarine simulator software
car simulator software
truck simulator sofware
ship simulator software
train simulator software
Ok, there is a lot of simulator software exist in the world but how many use multiplayer mode ? and how many use HLA protocol ? Moreover most of them are now abandonned or doesn't interesting for FlightGear (submarine are not really interesting in FG
)
After asking my friend Google "software with HLA support" it seems that there no software who support it (at least for simulator software)
Finally what is the interest to implement HLA support if nobody use it ? The idea of a standard protocol for every simulator software is good, but if nobody use it... you see what I mean.
Of course we can say <<FlightGear could be the first software who use officialy and proudly HLA protocol>> it could be a good head up for the protocol, for the moment I see only 2 or 3 software who are able to implement HLA protocol (because the rest of software are no longer supported/developped)
Thus which simulator software still actively developped in the world ?
- FlightGear
- X-Plane
- Microsoft Flight
- Flight legacy (fly simvol)
I'm not sure that Microsoft Flight is interested to implement HLA protocol, thus is still only 2 softwares : FlightGear and X-Plane
Now the question is : Someone know if X-Plane plan to implement HLA protocol ? and for Flight legacy ?
In conclusion I would say : HLA protocol is a great idea but the problem come mostly from other software developper's who don't implement HLA in their software.
To come back at the subject :
Today was a better day than yesterday
Now I'm able to consult the list of AI aircraft where I need. I have also started to implement a "selector" who select only AI aircraft in area of the player. In fact this selector create a list of AI aircraft in the area of the player.
Unfortunately for the moment the list doesn't contain all AI aircraft that she should and I don't know why.
For example, I launch FG at KSFO, FGMS receive my position and start to select only AI aircraft in my area, but only 2 or 3 AI aircraft are added to the list instead of dozens of AI aircraft. Moreover the 2 or 3 AI aircraft in the list are not really in my area :/
I have commited all my work in the repo, if someone is able to take a look at it and say me where is the problem it's cool
I have checked if I have inversed lat/lon somewhere in my source code but it seems that I haven't done this error.
The next work is :
Since I received the authorization to download aircraft position from planefinder.net every 60 seconds, I need to create a function who predict the position of each aircraft every 4 seconds (I plan to send AI traffic every 4 seconds).
In this way, each AI aircraft are associed to a kind of flight plan containing 15 positions:
0 sec : I receive fresh aircraft position from planefinder.net + I compute the next 15 positions of the aircraft at 4s interval (I know only the position, airspeed, heading of the aircraft to do that)
4 sec : I send the 1st computed positions
8 sec : I send the 2nd computed positions
...
...
56 sec : I send the 15th computed positions
0 sec : I receive fresh aircraft position from planefinder.net + I compute the 15 next positions of the aircraft at 4s interval
...
...
I think that you see what I mean. If someone has an idea of how to do that : say it
Cheers,
Clément