messages

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format01

type Format01 struct {
	AircraftCategory       fields2.AircraftCategorySetD
	AircraftIdentification fields2.AircraftIdentification
}

Format01 is a message at the format BDS 0,8

func (*Format01) GetAircraftCategory

func (message *Format01) GetAircraftCategory() fields2.AircraftCategory

GetAircraftCategory returns the category of the aircraft

func (*Format01) GetAircraftIdentification

func (message *Format01) GetAircraftIdentification() fields2.AircraftIdentification

GetAircraftIdentification returns the identification of the aircraft

func (*Format01) GetMessageFormat

func (message *Format01) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (*Format01) GetRegister

func (message *Format01) GetRegister() bds.Register

GetRegister returns the register of the message

func (*Format01) ToString

func (message *Format01) ToString() string

ToString returns a basic, but readable, representation of the message

type Format02

type Format02 struct {
	AircraftCategory       fields2.AircraftCategorySetC
	AircraftIdentification fields2.AircraftIdentification
}

Format02 is a message at the format BDS 0,8

func (*Format02) GetAircraftCategory

func (message *Format02) GetAircraftCategory() fields2.AircraftCategory

GetAircraftCategory returns the category of the aircraft

func (*Format02) GetAircraftIdentification

func (message *Format02) GetAircraftIdentification() fields2.AircraftIdentification

GetAircraftIdentification returns the identification of the aircraft

func (*Format02) GetMessageFormat

func (message *Format02) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (*Format02) GetRegister

func (message *Format02) GetRegister() bds.Register

GetRegister returns the register of the message

func (*Format02) ToString

func (message *Format02) ToString() string

ToString returns a basic, but readable, representation of the message

type Format03

type Format03 struct {
	AircraftCategory       fields2.AircraftCategorySetB
	AircraftIdentification fields2.AircraftIdentification
}

Format03 is a message at the format BDS 0,8

func (*Format03) GetAircraftCategory

func (message *Format03) GetAircraftCategory() fields2.AircraftCategory

GetAircraftCategory returns the category of the aircraft

func (*Format03) GetAircraftIdentification

func (message *Format03) GetAircraftIdentification() fields2.AircraftIdentification

GetAircraftIdentification returns the identification of the aircraft

func (*Format03) GetMessageFormat

func (message *Format03) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (*Format03) GetRegister

func (message *Format03) GetRegister() bds.Register

GetRegister returns the register of the message

func (*Format03) ToString

func (message *Format03) ToString() string

ToString returns a basic, but readable, representation of the message

type Format04

type Format04 struct {
	AircraftCategory       fields2.AircraftCategorySetA
	AircraftIdentification fields2.AircraftIdentification
}

Format04 is a message at the format BDS 0,8

func (*Format04) GetAircraftCategory

func (message *Format04) GetAircraftCategory() fields2.AircraftCategory

GetAircraftCategory returns the category of the aircraft

func (*Format04) GetAircraftIdentification

func (message *Format04) GetAircraftIdentification() fields2.AircraftIdentification

GetAircraftIdentification returns the identification of the aircraft

func (*Format04) GetMessageFormat

func (message *Format04) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (*Format04) GetRegister

func (message *Format04) GetRegister() bds.Register

GetRegister returns the register of the message

func (*Format04) ToString

func (message *Format04) ToString() string

ToString returns a basic, but readable, representation of the message

type MessageBDS08

type MessageBDS08 interface {
	adsb.Message

	// GetAircraftCategory returns the aircraft category
	GetAircraftCategory() fields.AircraftCategory
	// GetAircraftIdentification returns the identity of the aircraft
	GetAircraftIdentification() fields.AircraftIdentification
}

MessageBDS08 is the basic interface that ADSB messages at the format BDS 0,8 are expected to implement

func ReadBDS08

func ReadBDS08(adsbLevel adsb.Level, data []byte) (MessageBDS08, adsb.Level, error)

ReadBDS08 reads a message at the format BDS 0,8. As this format does not have changes from ADSB V0 to ADSB V2, the returned ADSBLevel is always the given one.

Params:

  • adsbLevel: The ADSB level request (not used, but present for coherency)
  • data: The data of the message must be 7 bytes

Returns the message read, the given ADSBLevel or an error

Jump to

Keyboard shortcuts

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