Merge pull request #793 from wcas/wac/fix-ownship-report

Fix Ownship Target Identity Information
pull/795/head
cyoung 2019-10-14 11:56:04 -04:00 zatwierdzone przez GitHub
commit eebe80d3c7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -295,7 +295,10 @@ func makeOwnshipReport() bool {
// See p.16.
msg[0] = 0x0A // Message type "Ownship".
msg[1] = 0x01 // Alert status, address type.
// Ownship Target Identify (see 3.5.1.2 of GDL-90 Specifications)
// First half of byte is 0 for 'No Traffic Alert'
// Second half of byte is 0 for 'ADS-B with ICAO'
msg[1] = 0x00 // Alert status, address type.
code, _ := hex.DecodeString(globalSettings.OwnshipModeS)
if len(code) != 3 {