Closed aaubrypro closed 5 years ago
Finally, there is no problem. The msg3 came 23 seconds later after msg2. In this case (over 10 seconds), the global calculation way is not recommanded.
Hi @aaubrypro, In this case you can still use msg3 and previous decoded position with function pms.adsb.airborne_position_with_ref(msg, lat_ref, lon_ref)
, as long as the reference location is within 180nm (~ 330km).
Hi,
I found out some problems with the position function. It gives me non continuous positions, sometimes jumping over several hundred km. I have a unit test reproducing the (possible) bug. It contains a set of real world ads-b messages. It seems to be coming from the calculation of the latitude index (j). At a certain moment, it goes from 7 to 8, and the tracks start jumping far from their actual position. When I force j=7, the result is correct.
Thanks.