by wkitty42 » Sat Apr 20, 2019 1:06 am
you should be able to get/send updates in a batched round robin style... you would be simulating a radar sweep if you do it like i'm thinking about with your info above... update them after each sweep or portion of such...
you can ignore the following if it doesn't apply...
i say the above but i'm also kinda confused... are you speaking of your own AI craft you are moving about via the MP protocol or are you talking about detecting AI craft flying about and being controlled by the sim's built-in traffic manager? i know you can get a list of craft around you that are there via MP or via the traffic manager... i do so via a python script to request and pull the data... once the data arrives, it is formatted for the ASCII text screen i'm viewing it with on my terminal... in reality, right now, my script is only pulling the AI traffic from the traffic manager but i should be able to add another property branch and get the others just as easily...
anyway, that's what i do to display/detect other craft within the default 100nm or 200nm (i forget which) of my location... i don't know the math, yet, to take those location values i get and convert them to a bearing and distance but that may be something i do when i get back to flying again... right now, i'm not even trying to plot them... just displaying them...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."