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 ReadAverageStaticPressureV0

func ReadAverageStaticPressureV0(data []byte) (bool, uint32)

ReadAverageStaticPressureV0 as given by Table A-2-68

func ReadAverageStaticPressureV1AndV2

func ReadAverageStaticPressureV1AndV2(data []byte) (bool, uint32)

ReadAverageStaticPressureV1AndV2 as given by Table E-2-68

func ReadHumidityV0

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

func ReadHumidityV1AndV2

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

func ReadStaticAirTemperatureV0

func ReadStaticAirTemperatureV0(data []byte) float32

ReadStaticAirTemperatureV0 as given by Table A-2-68

func ReadStaticAirTemperatureV1AndV2

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

ReadStaticAirTemperatureV1AndV2 as given by Table E-2-68

func ReadWindDirectionV0

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

ReadWindDirectionV0 as given by Table A-2-68

func ReadWindDirectionV1AndV2

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

ReadWindDirectionV1AndV2 as given by Table E-2-68

func ReadWindSpeed

func ReadWindSpeed(data []byte) (bool, uint32)

Types

type Source

type Source byte

Source is the source

Specified in Doc 9871 / Table A-2-68

const (
	// SourceInvalid indicates turbulence data not available in Register 45.
	SourceInvalid Source = 0
	// SourceINS indicates INS source.
	SourceINS Source = 1
	// SourceGNSS indicates GNSS source.
	SourceGNSS Source = 2
	// SourceDMEDME indicates DME/DME source.
	SourceDMEDME Source = 3
	// SourceVORDME indicates VOR/DME source.
	SourceVORDME Source = 4
)

func ReadSource

func ReadSource(data []byte) Source

func (Source) ToString

func (source Source) ToString() string

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

type TurbulenceFlag

type TurbulenceFlag byte

TurbulenceFlag is the single antenna flag definition

Specified in Doc 9871 / Table E-2-68

const (
	// TFNoDataAvailable indicates turbulence data not available in Register 45.
	TFNoDataAvailable TurbulenceFlag = 0
	// TFDataAvailable indicates turbulence data available in Register 45.
	TFDataAvailable TurbulenceFlag = 1
)

func ReadTurbulenceFlag

func ReadTurbulenceFlag(data []byte) TurbulenceFlag

ReadTurbulenceFlag reads the TurbulenceFlag from a 56 bits data field

func (TurbulenceFlag) ToString

func (tf TurbulenceFlag) ToString() string

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

type TurbulenceLevel

type TurbulenceLevel byte

TurbulenceLevel is the turbulence flag

Specified in Doc 9871 / Table A-2-68

const (
	// TLNil indicates Nil.
	TLNil TurbulenceLevel = 0
	// TLLight indicates Light.
	TLLight TurbulenceLevel = 1
	// TLModerate indicates Moderate.
	TLModerate TurbulenceLevel = 2
	// TLSevere indicates Severe.
	TLSevere TurbulenceLevel = 3
)

func ReadTurbulence

func ReadTurbulence(data []byte) (bool, TurbulenceLevel)

func (TurbulenceLevel) ToString

func (tl TurbulenceLevel) 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