From cac8dd98d45ecc3cd4510c5a9491bd5caaf33664 Mon Sep 17 00:00:00 2001 From: William Castillo Date: Sun, 13 Oct 2019 22:23:38 -0500 Subject: [PATCH] Fix Ownship Target Identity Information --- main/gen_gdl90.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index 7bf783d8..fd4c0bc9 100644 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -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 {