TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
100 stars 25 forks source link

ADSBEx: Filter out static transponders like TWR #223

Closed TwinFan closed 2 years ago

TwinFan commented 2 years ago

Current Situation / Problem ADS-B Exchange reports "static" transponders, which are displayed in ADSBEx's radar view as type TWR. At the time of writing, EGCC had 4 of them around the airport perimeter.

As it is impossible to derive a type, LiveTraffic displays those object with default type, often "A320". So we end up having static A320 sitting around the airport, not rarely even within buildings, which looks ugly.

Looking at the ADSBEx raw data there is nothing that suggest these object to be of static nature. There are very few fields filled with reasonable data at all, basically only position:

{"postime":"1642859920010","icao":"425851","reg":"","type":"","wtc":"0","spd":"0","altt":"0","alt":"","galt":"","talt":"","lat":"53.361341","lon":"-2.271868","vsit":"0","vsi":"","trkh":"0","ttrk":"","trak":"","sqk":"","call":"","gnd":"1","trt":"3","pos":"1","mlat":"0","tisb":"0","sat":"0","opicao":"","cou":"United Kingdom","mil":"0","interested":"0","dst":"0.37"}

However, unlike any plane (even taxiing planes) ADSBEx in this case of static objects delivers no altitude data ("alt":"","galt":"") plus a positive ground flag ("gnd":"1"). I'd love getting such accurate data for taxiing planes...but...well...

Suggested Solution Try to derive a way of identifying static senders. Assuming the above pattern of unused fields and fields set to 0 plus a positive gnd flag might be a start.

Offer an option to hide static ADS-B senders, default: on, as there is no reasonable representation otherwise. If this option is off, then those objects should be classified as cars, not planes, though.

Benefits Allows to remove object from the scenery that don't belong there.

Additional context Forum post

TwinFan commented 2 years ago

Changed option to a global option in Settings > Basics > Cooperation > Hide static objects, defaults to true.