bds61

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AircraftStatus

type AircraftStatus interface {
	bds.Message
	GetSubtype() fields.Subtype
}

func ReadAircraftStatus

func ReadAircraftStatus(data []byte) (AircraftStatus, error)

ReadAircraftStatus reads a message at the format AircraftStatus

type AircraftStatusACAS

type AircraftStatusACAS struct {
	FormatTypeCode     byte
	Subtype            fields.Subtype
	ResolutionAdvisory ra.ResolutionAdvisory
}

AircraftStatusACAS is a message at the format BDS 6,1

func ReadAircraftStatusACAS

func ReadAircraftStatusACAS(data []byte) (*AircraftStatusACAS, error)

ReadAircraftStatusACAS reads a AircraftStatus / Subtype 2 (ACAS RA Broadcast)

func (AircraftStatusACAS) CheckCoherency

func (message AircraftStatusACAS) CheckCoherency() error

CheckCoherency checks that the data of the message are somehow coherent, such as for example: no Reserved values, etc.

func (AircraftStatusACAS) GetRegister

func (message AircraftStatusACAS) GetRegister() register.Register

GetRegister returns the Register the message

func (AircraftStatusACAS) GetSubtype

func (message AircraftStatusACAS) GetSubtype() fields.Subtype

func (AircraftStatusACAS) ToString

func (message AircraftStatusACAS) ToString() string

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

type AircraftStatusEmergency

type AircraftStatusEmergency struct {
	FormatTypeCode          byte
	Subtype                 fields.Subtype
	EmergencyPriorityStatus fields.EmergencyPriorityStatus
	ModeACode               uint16
}

AircraftStatusEmergency is a message at the format BDS 6,1

func ReadAircraftStatusEmergency

func ReadAircraftStatusEmergency(data []byte) (*AircraftStatusEmergency, error)

ReadAircraftStatusEmergency reads a AircraftStatus / Subtype 1 (Emergency/priority status)

func (AircraftStatusEmergency) CheckCoherency

func (message AircraftStatusEmergency) CheckCoherency() error

CheckCoherency checks that the data of the message are somehow coherent, such as for example: no Reserved values, etc.

func (AircraftStatusEmergency) GetRegister

func (message AircraftStatusEmergency) GetRegister() register.Register

GetRegister returns the Register the message

func (AircraftStatusEmergency) GetSubtype

func (message AircraftStatusEmergency) GetSubtype() fields.Subtype

func (AircraftStatusEmergency) ToString

func (message AircraftStatusEmergency) ToString() string

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

type AircraftStatusNoInformation

type AircraftStatusNoInformation struct {
	FormatTypeCode          byte
	Subtype                 fields.Subtype
	EmergencyPriorityStatus fields.EmergencyPriorityStatus
}

AircraftStatusNoInformation is a message at the format BDS 6,1

func ReadAircraftStatusNoInformation

func ReadAircraftStatusNoInformation(data []byte) (*AircraftStatusNoInformation, error)

ReadAircraftStatusNoInformation reads a AircraftStatus / subtype 0 (No information)

func (AircraftStatusNoInformation) CheckCoherency

func (message AircraftStatusNoInformation) CheckCoherency() error

CheckCoherency checks that the data of the message are somehow coherent, such as for example: no Reserved values, etc.

func (AircraftStatusNoInformation) GetRegister

func (message AircraftStatusNoInformation) GetRegister() register.Register

GetRegister returns the Register the message

func (AircraftStatusNoInformation) GetSubtype

func (message AircraftStatusNoInformation) GetSubtype() fields.Subtype

func (AircraftStatusNoInformation) ToString

func (message AircraftStatusNoInformation) ToString() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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