openskynetwork / java-adsb

Mode S and ADS-B decoding library for Java
GNU General Public License v3.0
103 stars 41 forks source link

How to get latitude and longitude? #30

Closed Aimn closed 4 years ago

Aimn commented 4 years ago

Dear My adsb data is "8D7802995881120AB1E64B000000" My mode-s data is "05B90011FAB412" My Position is null How to get latitude and longitude from adsb data or mode-s data? Thanks!

fixje commented 4 years ago

8D7802995881120AB1E64B000000 is indeed an ADS-B position report. To decode the actual position the CPR algorithm needs at least two ADS-B position reports, one of type odd and one of type even.

05B90011FAB412 looks like an ACAS message which cannot be used to decode the position.

To understand how it works, you coulud have a look at the ExampleDecoder

Aimn commented 4 years ago

thanks