adsb

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Format01 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format01 is the definition of a message at Format01

View Source
var Format02 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format02 is the definition of a message at Format02

View Source
var Format03 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format03 is the definition of a message at Format03

View Source
var Format04 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format04 is the definition of a message at Format04

View Source
var Format05 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format05 is the definition of a message at Format05

View Source
var Format06 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format06 is the definition of a message at Format06

View Source
var Format07 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format07 is the definition of a message at Format07

View Source
var Format08 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format08 is the definition of a message at Format08

View Source
var Format09 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format09 is the definition of a message at Format09

View Source
var Format10 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format10 is the definition of a message at Format10

View Source
var Format11 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format11 is the definition of a message at Format11

View Source
var Format12 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format12 is the definition of a message at Format12

View Source
var Format13 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format13 is the definition of a message at Format13

View Source
var Format14 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format14 is the definition of a message at Format14

View Source
var Format15 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format15 is the definition of a message at Format15

View Source
var Format16 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format16 is the definition of a message at Format16

View Source
var Format17 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format17 is the definition of a message at Format17

View Source
var Format18 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format18 is the definition of a message at Format18

View Source
var Format19 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format19 is the definition of a message at Format19

View Source
var Format20 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format20 is the definition of a message at Format20

View Source
var Format21 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format21 is the definition of a message at Format21

View Source
var Format22 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format22 is the definition of a message at Format22

View Source
var Format28 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format28 is the definition of a message at Format28

View Source
var Format29 = adsbFormatReferenceDefinition{
	// contains filtered or unexported fields
}

Format29 is the definition of a message at Format29

View Source
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

func GetMessageFormatInformation(message Message) string

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

type Subtype added in v0.3.0

type Subtype interface {
	common.Printable

	ToSubtype() Subtype
}

Subtype is the subtype of a Format of a message. Some message don't have subtype and so should use nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL