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

No pressure altitude correcton above transition altitude #269

Open TwinFan opened 1 month ago

TwinFan commented 1 month ago

Describe the bug

Planes at high altitude are effectively flying at the wrong altitude. They don't keep to their flight levels. This is due to all altitudes being correct for barometric pressure, which is essential closer to ground so they keep their runway approaches and touch down at the beginning of a runway, but wrong above transition altitude.

To Reproduce

Cruise at high altitude, like FL320 and potentially watch traffic in the opposite direction come towards you at your altitude.

Expected behavior

Planes are expected to fly at their real-world altitudes.

Technical Info

Reference

Raised in the support forum.

Background

Altitude data collected from the tracking sources is barometric altitude. (Or it turned out that using the barometric altitude is the more reliable data as this comes straight from the ADS-B senders. Some sources also provide a converted value labelled GPS altitude, but it turned out to be very unreliable.)

LiveTraffic now needs to convert this value in a physical altitude the same way as an aircraft. In an aircraft the QNH value is to be entered into the altimeter. And the same way LiveTraffic corrects the barometric altitude using the area's QNH value, which is why LiveTraffic processes weather information as seen in its Status Window.

However, after passing transition altitude, real-world planes change the altimeter to standard pressure, ie. pressure altitude at high altitudes is no longer corrected for area air pressure but used directly to have a common ground during cruising across large areas.

That's what's missing in LiveTraffic: LiveTraffic always converts all altitude readings. But it must not do so for planes flying above transition altitude. The tricky thing is that transition altitude is not universal. It can be different per airport or region. To keep things simple let's assume that transition altitude is 10,000ft, ie. for any altitude reading above 10,000 LiveTraffic shall no longer apply altimeter correction.

172MC commented 1 month ago

“To keep things simple” Well, things ARE simple in the US and Canada, 18,000ft is the transition altitude everywhere there. Any way to have LT use that there (and Mexico too, where it is 18,500) and 10,000ft for everywhere else?

TwinFan commented 1 month ago

And there it goes...bye bye simplicity ;-)

172MC commented 1 month ago

Considering that nobody even noticed the issue for years, I now regret my comment and agree that you should keep it really simple: 10,000ft transition altitude everywhere is fine. All the best to you, TwinFan.

TwinFan commented 1 month ago

Don't worry...I'm not going to spend sleepless nights over the issue...and there is no hotfix coming up for it either :-)