Let me know if the todolist in fg_ais.cxx is a good start.Clement - what are your plans?
Hooray wrote in Sun Oct 14, 2012 2:55 pm:[*] fgms also already has support for excluding traffic beyond a certain range
Hooray wrote in Sun Oct 14, 2012 2:55 pm:[*] we could simply change the header so that fgfs/fgms know that this is a special type of relay server, that could either be configured in addition to other MP servers at the client-side, or as a relay at the server-side (what do you prefer?)
Hooray wrote in Sun Oct 14, 2012 2:55 pm:[*] regarding the scheduling of asynchronous events for processing JSON requests at 20 second intervals, and for extrapolating the position in the meantime, we could use a separate thread that runs a simple scheduler in the background - FG and SimGear already have code for this sort of thing (see SGTimer).
Hooray wrote in Sun Oct 14, 2012 2:55 pm:Personally, I feel we shouldn't touch any of the existing features in fgms: that would make it unnecessarily complicated to merge changes back upstream. Instead, we should add new "mode" to fgms, to use other traffic sources and inject data from web feeds (JSON).
if(elapsedTime = 20){
updateJsonDataFromProvider();
elapsedTime = 0;
computeRealAIPositionFromFreshJsonData();
dataToBeSent = createNetworkPacketFromComputedAIPosition();
sendOverNetwork(dataToBeSent);
}elseif(elapsedTime = 4 OR elapsedTime = 8 OR elapsedTime = 12 OR elapsedTime = 16){
computeFictiveAIPositionFromPreviousAIPosition();
dataToBeSent = createPacketForNetwork();
sendOverNetwork(dataToBeSent);
}else{
nothing to do, we already update "fictive" position every 4 seconds and update "real" position every 20 seconds with "fresh" JsonData from our provider.
}
I would prefer to keep independant of SimGear. I prefer to do that in "pure" C++, not across external library like SimGear.
wlbragg wrote in Mon Oct 15, 2012 5:05 pm:I've been a programmer for 30 years!
Users browsing this forum: No registered users and 0 guests