messages

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBDS61

func ReadBDS61(adsbLevel adsb.ReaderLevel, data []byte) (adsb.Message, adsb.ReaderLevel, error)

ReadBDS61 reads a message at the format BDS 6,1. This format was extended from ADSB V1 to ADSB V2

Changes between version:

  • ADSB V0 -> ADSB V1: Add Subtype 2: Add ACAS Resolution Advisory Message
  • ADSB V1 -> ADSB V2: Change Subtype 1: Add Mode A Code

Params:

  • adsbLevel: The ADSB level request
  • data: The data of the message must be 7 bytes

Returns the message read, the given ADSBLevel or an error

Types

type Format28ACAS added in v0.3.0

type Format28ACAS struct {
	ACASData []byte
}

Format28ACAS is a message at the format BDS 6,1

func ReadFormat28ACAS added in v0.3.0

func ReadFormat28ACAS(data []byte) (*Format28ACAS, error)

ReadFormat28ACAS reads a message at the format Format 28 / Subtype 2 (ACAS RA Broadcast)

func (Format28ACAS) GetACASData added in v0.3.0

func (message Format28ACAS) GetACASData() []byte

GetACASData returns the ACAS Data

func (Format28ACAS) GetMaximumADSBLevel added in v0.3.0

func (message Format28ACAS) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format28ACAS) GetMessageFormat added in v0.3.0

func (message Format28ACAS) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format28ACAS) GetMinimumADSBLevel added in v0.3.0

func (message Format28ACAS) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format28ACAS) GetRegister added in v0.3.0

func (message Format28ACAS) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format28ACAS) GetSubtype added in v0.3.0

func (message Format28ACAS) GetSubtype() adsb.Subtype

GetSubtype returns the Subtype

func (Format28ACAS) ToString added in v0.3.0

func (message Format28ACAS) ToString() string

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

type Format28NoInformation

type Format28NoInformation struct {
}

Format28NoInformation is a message at the format BDS 6,1

func ReadFormat28NoInformation added in v0.3.0

func ReadFormat28NoInformation(data []byte) (*Format28NoInformation, error)

ReadFormat28NoInformation reads a message at the format Format28ACAS / subtype 0 (No information)

func (Format28NoInformation) GetMaximumADSBLevel added in v0.3.0

func (message Format28NoInformation) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format28NoInformation) GetMessageFormat

func (message Format28NoInformation) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format28NoInformation) GetMinimumADSBLevel added in v0.3.0

func (message Format28NoInformation) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format28NoInformation) GetRegister

func (message Format28NoInformation) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format28NoInformation) GetSubtype

func (message Format28NoInformation) GetSubtype() adsb.Subtype

GetSubtype returns the Subtype

func (Format28NoInformation) ToString

func (message Format28NoInformation) ToString() string

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

type Format28StatusV0 added in v0.3.0

type Format28StatusV0 struct {
	EmergencyPriorityStatus fields.EmergencyPriorityStatus
}

Format28StatusV0 is a message at the format BDS 6,1

func ReadFormat28StatusV0 added in v0.3.0

func ReadFormat28StatusV0(data []byte) (*Format28StatusV0, error)

ReadFormat28StatusV0 reads a message at the format Format 28 / Subtype 1 (Emergency/priority status) for ADSB V0

func (Format28StatusV0) GetEmergencyPriorityStatus added in v0.3.0

func (message Format28StatusV0) GetEmergencyPriorityStatus() fields.EmergencyPriorityStatus

GetEmergencyPriorityStatus returns the EmergencyPriorityStatus

func (Format28StatusV0) GetMaximumADSBLevel added in v0.3.0

func (message Format28StatusV0) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format28StatusV0) GetMessageFormat added in v0.3.0

func (message Format28StatusV0) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format28StatusV0) GetMinimumADSBLevel added in v0.3.0

func (message Format28StatusV0) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format28StatusV0) GetRegister added in v0.3.0

func (message Format28StatusV0) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format28StatusV0) GetSubtype added in v0.3.0

func (message Format28StatusV0) GetSubtype() adsb.Subtype

GetSubtype returns the Subtype

func (Format28StatusV0) ToString added in v0.3.0

func (message Format28StatusV0) ToString() string

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

type Format28StatusV1 added in v0.3.0

type Format28StatusV1 struct {
	EmergencyPriorityStatus fields.EmergencyPriorityStatus
}

Format28StatusV1 is a message at the format BDS 6,1

func ReadFormat28StatusV1 added in v0.3.0

func ReadFormat28StatusV1(data []byte) (*Format28StatusV1, error)

ReadFormat28StatusV1 reads a message at the format Format 28 / Subtype 1 (Emergency/priority status) for ADSB V1

func (Format28StatusV1) GetEmergencyPriorityStatus added in v0.3.0

func (message Format28StatusV1) GetEmergencyPriorityStatus() fields.EmergencyPriorityStatus

GetEmergencyPriorityStatus returns the EmergencyPriorityStatus

func (Format28StatusV1) GetMaximumADSBLevel added in v0.3.0

func (message Format28StatusV1) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format28StatusV1) GetMessageFormat added in v0.3.0

func (message Format28StatusV1) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format28StatusV1) GetMinimumADSBLevel added in v0.3.0

func (message Format28StatusV1) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format28StatusV1) GetRegister added in v0.3.0

func (message Format28StatusV1) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format28StatusV1) GetSubtype added in v0.3.0

func (message Format28StatusV1) GetSubtype() adsb.Subtype

GetSubtype returns the Subtype

func (Format28StatusV1) ToString added in v0.3.0

func (message Format28StatusV1) ToString() string

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

type Format28StatusV2 added in v0.3.0

type Format28StatusV2 struct {
	EmergencyPriorityStatus fields.EmergencyPriorityStatus
	ModeACode               uint16
}

Format28StatusV2 is a message at the format BDS 6,1

func ReadFormat28StatusV2 added in v0.3.0

func ReadFormat28StatusV2(data []byte) (*Format28StatusV2, error)

ReadFormat28StatusV2 reads a message at the format Format 28 / Subtype 1 (Emergency/priority status) for ADSB V2

func (Format28StatusV2) GetEmergencyPriorityStatus added in v0.3.0

func (message Format28StatusV2) GetEmergencyPriorityStatus() fields.EmergencyPriorityStatus

GetEmergencyPriorityStatus returns the EmergencyPriorityStatus

func (Format28StatusV2) GetMaximumADSBLevel added in v0.3.0

func (message Format28StatusV2) GetMaximumADSBLevel() adsb.MessageLevel

GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message

func (Format28StatusV2) GetMessageFormat added in v0.3.0

func (message Format28StatusV2) GetMessageFormat() adsb.MessageFormat

GetMessageFormat returns the ADSB format of the message

func (Format28StatusV2) GetMinimumADSBLevel added in v0.3.0

func (message Format28StatusV2) GetMinimumADSBLevel() adsb.MessageLevel

GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message

func (Format28StatusV2) GetRegister added in v0.3.0

func (message Format28StatusV2) GetRegister() bds.Register

GetRegister returns the register of the message

func (Format28StatusV2) GetSubtype added in v0.3.0

func (message Format28StatusV2) GetSubtype() adsb.Subtype

GetSubtype returns the Subtype

func (Format28StatusV2) ToString added in v0.3.0

func (message Format28StatusV2) ToString() string

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

Jump to

Keyboard shortcuts

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