fields

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadGroundTrack

func ReadGroundTrack(data []byte) (float32, bool)

ReadGroundTrack reads the GroundTrack from a 56 bits data field

Types

type CompactPositionReportingFormat

type CompactPositionReportingFormat byte

CompactPositionReportingFormat is the CPR (Compact Position Reporting) format definition

Specified in Doc 9871 / A.2.3.3.3

const (
	// CPRFormatEven denotes an even format coding
	CPRFormatEven CompactPositionReportingFormat = 0
	// CPRFormatOdd indicates an odd format coding
	CPRFormatOdd CompactPositionReportingFormat = 1
)

func ReadCompactPositionReportingFormat

func ReadCompactPositionReportingFormat(data []byte) CompactPositionReportingFormat

ReadCompactPositionReportingFormat reads the CompactPositionReportingFormat from a 56 bits data field

func (CompactPositionReportingFormat) ToString

func (format CompactPositionReportingFormat) ToString() string

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

type EncodedLatitude

type EncodedLatitude uint32

EncodedLatitude is the encoded latitude

Specified in Doc 9871 / C.2.6

func ReadEncodedLatitude

func ReadEncodedLatitude(data []byte) EncodedLatitude

ReadEncodedLatitude reads the EncodedLatitude from a 56 bits data field

func (EncodedLatitude) ToString

func (encodedLatitude EncodedLatitude) ToString() string

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

type EncodedLongitude

type EncodedLongitude uint32

EncodedLongitude is the encoded longitude

Specified in Doc 9871 / C.2.6

func ReadEncodedLongitude

func ReadEncodedLongitude(data []byte) EncodedLongitude

ReadEncodedLongitude reads the EncodedLongitude from a 56 bits data field

func (EncodedLongitude) ToString

func (encodedLongitude EncodedLongitude) ToString() string

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

type MovementStatus

type MovementStatus int

MovementStatus is the status of the Movement information

const (
	// MSNoInformation indicates no information
	MSNoInformation MovementStatus = 0
	// MSAircraftStopped indicates that the aircraft is stopped
	MSAircraftStopped MovementStatus = 1
	// MSAboveMaximum indicates that the Movement is above the maximum
	MSAboveMaximum MovementStatus = 124
	// MSReservedDecelerating indicates that the value is reserved
	MSReservedDecelerating MovementStatus = 125
	// MSReservedAccelerating indicates that the value is reserved
	MSReservedAccelerating MovementStatus = 126
	// MSReservedBackingUp indicates that the value is reserved
	MSReservedBackingUp MovementStatus = 127
)

func ReadMovement

func ReadMovement(data []byte) (float32, MovementStatus)

ReadMovement reads the Movement from a 56 bits data field

func (MovementStatus) ToString added in v0.6.0

func (movementStatus MovementStatus) ToString() string

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

type Time

type Time byte

Time is the time synchronization definition

Specified in Doc 9871 / A.2.3.3.4

const (
	// TNotSynchronized indicates that the time is not synchronized to UTC
	TNotSynchronized Time = 0
	// TSynchronizedUTC indicates that the time is synchronized to UTC
	TSynchronizedUTC Time = 1
)

func ReadTime

func ReadTime(data []byte) Time

ReadTime reads the Time from a 56 bits data field

func (Time) ToString

func (time Time) ToString() string

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

Jump to

Keyboard shortcuts

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