I'm really happy to see, there is some software to connect to the VATSIM network
I just want to ask if it's possible to see all traffic in flightgear at least as blue yellow ?
I have the problem that I can see approx. 10 % of the traffic on flightgears pilots list (compared to the Squawkbox747 Pilots list). I think I should see all pilots on flightgear, too if they are in a range of 100nm or ?
Is it a bug in my configuration or with the version of flightgear or is it not implemented yet ?
Btw, I have flightgear 2016.4.4 installed with SquawkBox 1.99k and Squawkgear from 14.04.2010.
In general it's not the most critical problem, but in situations like "give way to" calls or "follow the xxx" it would be a problem.
Sadly I can't find anything on the www regarding to this topic (on all sites I can read that the traffic is displayed as 747 or A320..)
Thank you in advance.
Regards
Chris
Edit:
Ok, I figured out that the squawkgear python script mp.py actually skip entries which have no airplane model set.
So I comented out the following line (366):
- Code: Select all
if i == '0': return # don't inject if model not ready
and get all airplanes registered after I click connect. Sadly after 1 second they are being removed
Now searching for the part which removes planes without a model setuped.
Edit Edit: Ok, seems to be not that simple. I guess flightgear removes planes that are not refreshed frequently and VATSIM might not be updating planes that are not moving that often. I guess that could be the reason why they're removed. Maybe someone who is more familar with the VATSIM protocol data has an idea ?
Last Edit:
Ok, I found something out:
I added a debug output on squak.py on the update line, so it looked like this:
- Code: Select all
mp.update(d['tcas'])
print 'Update message:', d['tcas']
Here some output from it:
- Code: Select all
Update message: DLH4631 AIRLINE=DLH 0 52.30259 4.76175 0 4 8390244
Update message: N34937 3 ~B737 52.31242 4.80506 -10 0 4269800912
Update message: KLM730X AIRLINE=KLM 0 52.31075 4.43320 4041 227 4257220016
Update message: DAL165 AIRLINE=DAL 0 52.31203 4.76569 22 0 20972928
Update message: KLM641A AIRLINE=KLM 0 52.31510 4.75394 19 21 8391632
Update message: KLM868 AIRLINE=KLM 0 52.21780 4.94115 4832 257 4257221232
Update message: KLM17K AIRLINE=KLM 0 52.33106 4.70913 19 55 32
Update message: PH-SPF 0 ~B737 51.35032 5.66768 9036 201 12584344
As you guess I actually could see only the PH-SPF and N34937. To get around the problem of invisible aircrafts I changed the regualr expression in mp.py (update(t) definition) in the following way:
- Code: Select all
m = re.match('(\S+) (\d+) (\S+) ([-.\d]+) ([-.\d]+) ([-.\d]+) ([\d.]+) (\d+)', t[a:])
to
- Code: Select all
m = re.match('(\S+) (\S+) (\S+) ([-.\d]+) ([-.\d]+) ([-.\d]+) ([\d.]+) (\d+)', t[a:])
So the AIRLINE=*** wouldn't cause regex to fail processing the rest of the data and I will see everything.
Because of this is a dirty hack, all of this AIRLINE=xxx types will be a 737-Aloah. This should be updated, maybe I will do it later. But I wonder a bit why most entries doesn't have an airplane model set :/
But this is the solution for missing traffic on VATSIM with flightgear at the moment