messages

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 ReadFormat01 added in v0.3.0

func ReadFormat01(data []byte) (*Format01, error)

ReadFormat01 reads a message at the format Format01

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) GetMaximumADSBLevel added in v0.3.0

func (message Format01) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format01) GetMessageFormat

func (message Format01) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format01) GetMinimumADSBLevel added in v0.3.0

func (message Format01) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format01) GetRegister

func (message Format01) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format01) GetSubtype added in v0.3.0

func (message Format01) GetSubtype() adsb.Subtype

GetSubtype returns the subtype of the message if any

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 ReadFormat02 added in v0.3.0

func ReadFormat02(data []byte) (*Format02, error)

ReadFormat02 reads a message at the format Format02

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) GetMaximumADSBLevel added in v0.3.0

func (message Format02) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format02) GetMessageFormat

func (message Format02) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format02) GetMinimumADSBLevel added in v0.3.0

func (message Format02) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format02) GetRegister

func (message Format02) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format02) GetSubtype added in v0.3.0

func (message Format02) GetSubtype() adsb.Subtype

GetSubtype returns the subtype of the message if any

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 ReadFormat03 added in v0.3.0

func ReadFormat03(data []byte) (*Format03, error)

ReadFormat03 reads a message at the format Format03

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) GetMaximumADSBLevel added in v0.3.0

func (message Format03) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format03) GetMessageFormat

func (message Format03) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format03) GetMinimumADSBLevel added in v0.3.0

func (message Format03) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format03) GetRegister

func (message Format03) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format03) GetSubtype added in v0.3.0

func (message Format03) GetSubtype() adsb.Subtype

GetSubtype returns the subtype of the message if any

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 ReadFormat04 added in v0.3.0

func ReadFormat04(data []byte) (*Format04, error)

ReadFormat04 reads a message at the format Format04

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) GetMaximumADSBLevel added in v0.3.0

func (message Format04) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format04) GetMessageFormat

func (message Format04) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format04) GetMinimumADSBLevel added in v0.3.0

func (message Format04) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format04) GetRegister

func (message Format04) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format04) GetSubtype added in v0.3.0

func (message Format04) GetSubtype() adsb.Subtype

GetSubtype returns the subtype of the message if any

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.ReaderLevel, data []byte) (MessageBDS08, adsb.ReaderLevel, 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