kopia lustrzana https://github.com/cyoung/stratux
Fix Ownship Target Identity Information
rodzic
93de565e4b
commit
cac8dd98d4
|
@ -295,7 +295,10 @@ func makeOwnshipReport() bool {
|
||||||
// See p.16.
|
// See p.16.
|
||||||
msg[0] = 0x0A // Message type "Ownship".
|
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)
|
code, _ := hex.DecodeString(globalSettings.OwnshipModeS)
|
||||||
if len(code) != 3 {
|
if len(code) != 3 {
|
||||||
|
|
Ładowanie…
Reference in New Issue