Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Format01 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format01 is the definition of a message at Format01
var Format02 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format02 is the definition of a message at Format02
var Format03 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format03 is the definition of a message at Format03
var Format04 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format04 is the definition of a message at Format04
var Format05 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format05 is the definition of a message at Format05
var Format06 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format06 is the definition of a message at Format06
var Format07 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format07 is the definition of a message at Format07
var Format08 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format08 is the definition of a message at Format08
var Format09 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format09 is the definition of a message at Format09
var Format10 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format10 is the definition of a message at Format10
var Format11 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format11 is the definition of a message at Format11
var Format12 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format12 is the definition of a message at Format12
var Format13 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format13 is the definition of a message at Format13
var Format14 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format14 is the definition of a message at Format14
var Format15 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format15 is the definition of a message at Format15
var Format16 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format16 is the definition of a message at Format16
var Format17 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format17 is the definition of a message at Format17
var Format18 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format18 is the definition of a message at Format18
var Format19 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format19 is the definition of a message at Format19
var Format20 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format20 is the definition of a message at Format20
var Format21 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format21 is the definition of a message at Format21
var Format22 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format22 is the definition of a message at Format22
var Format28 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format28 is the definition of a message at Format28
var Format29 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format29 is the definition of a message at Format29
var Format31 = adsbFormatReferenceDefinition{ // contains filtered or unexported fields }
Format31 is the definition of a message at Format31
Functions ¶
func GetMessageFormatInformation ¶ added in v0.3.0
GetMessageFormatInformation generates a string presenting the common information to all ADSB messages, which is only the format, the register, the subtype, and the ADSB level supported.
Types ¶
type Message ¶
type Message interface { bds.Message // GetMessageFormat returns the ADSB format of the message GetMessageFormat() MessageFormat // GetSubtype returns the subtype of the message if any. If the message does not have a subtype, should be null. GetSubtype() Subtype // GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message GetMinimumADSBLevel() MessageLevel // GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message GetMaximumADSBLevel() MessageLevel }
Message is the basic interface that ADSB messages are expected to implement
type MessageFormat ¶
type MessageFormat interface { common.Printable // GetTypeCode returns the id of the MessageFormat message GetTypeCode() byte // GetRegister returns the BDS implementing the message GetRegister() bds.Register }
MessageFormat is the definition of a format for an ADSB message
type MessageLevel ¶ added in v0.3.0
type MessageLevel byte
MessageLevel is used to represent a message minimum/maximum ADSB level.
const ( // MessageLevel0 indicates that the message could be level ADSB level 0 or more MessageLevel0 MessageLevel = 0 // MessageLevel1 indicates that the message must be read as ADSB 0 or has been determined as being level 0 only MessageLevel1 MessageLevel = 1 // MessageLevel2 indicates that the message must be read as ADSB 2 or has been determined as being level 1 only MessageLevel2 MessageLevel = 2 )
func (MessageLevel) ToString ¶ added in v0.3.0
func (level MessageLevel) ToString() string
ToString returns a basic, but readable, representation of the message
type ReaderLevel ¶ added in v0.3.0
type ReaderLevel byte
ReaderLevel is the definition of the ADSB ReaderLevel used to communicate with reader function. The ReaderLevel is normally present given by the query (which is not available) or is given by the Aircraft Status Operational Message BDS 6,5.
As stated by official documentation: An ADS-B Version Two (2) Receiving Subsystem shall, as a default, assume the received messages are using ADS-B Version Zero (0) ADS-B Message format unless, or until, an Aircraft Operational Status Message is received and the ADS-B Version Number is confirmed to be other than Zero (0)
const ( // ReaderLevel0 indicates that the message must be read as ADSB 0 or has been determined as being level 0 only ReaderLevel0 ReaderLevel = 1 // ReaderLevel1 indicates that the message must be read as ADSB 1 or has been determined as being level 1 only ReaderLevel1 ReaderLevel = 3 // ReaderLevel2 indicates that the message must be read as ADSB 2 or has been determined as being level 1 only ReaderLevel2 ReaderLevel = 4 )
func (ReaderLevel) ToString ¶ added in v0.3.0
func (level ReaderLevel) ToString() string
ToString returns a basic, but readable, representation of the message