Fix Ownship Target Identity Information

pull/793/head
William Castillo 2019-10-13 22:23:38 -05:00
rodzic 93de565e4b
commit cac8dd98d4
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 {