fields

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AirspeedNormal

type AirspeedNormal uint16

AirspeedNormal is the Airspeed Normal definition

Specified in Doc 9871 / Table A-2-9

func ReadAirspeedNormal

func ReadAirspeedNormal(data []byte) AirspeedNormal

ReadAirspeedNormal reads the AirspeedNormal from a 56 bits data field

func (AirspeedNormal) GetAirspeed

func (airspeed AirspeedNormal) GetAirspeed() int

GetAirspeed returns the airspeed. Note that the returned value will be 0 for VelocityStatusNoInformation and the maximum for VelocityMaximum

func (AirspeedNormal) GetStatus

func (airspeed AirspeedNormal) GetStatus() VelocityStatus

GetStatus returns the status of the velocity

func (AirspeedNormal) ToString

func (airspeed AirspeedNormal) ToString() string

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

type AirspeedSupersonic

type AirspeedSupersonic uint16

AirspeedSupersonic is the Airspeed Supersonic definition

Specified in Doc 9871 / Table A-2-9

func ReadAirspeedSupersonic

func ReadAirspeedSupersonic(data []byte) AirspeedSupersonic

ReadAirspeedSupersonic reads the AirspeedSupersonic from a 56 bits data field

func (AirspeedSupersonic) GetAirspeed

func (airspeed AirspeedSupersonic) GetAirspeed() int

GetAirspeed returns the velocity. Note that the returned value will be 0 for VelocityStatusNoInformation and the maximum for VelocityMaximum

func (AirspeedSupersonic) GetStatus

func (airspeed AirspeedSupersonic) GetStatus() VelocityStatus

GetStatus returns the status of the velocity

func (AirspeedSupersonic) ToString

func (airspeed AirspeedSupersonic) ToString() string

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

type AirspeedType

type AirspeedType byte

AirspeedType is the Airspeed Type definition

Specified in Doc 9871 / Table A-2-9

const (
	// ATIndicatedAirSpeed indicates IAS
	ATIndicatedAirSpeed AirspeedType = 0
	// ATTrueAirSpeed indicates TAS
	ATTrueAirSpeed AirspeedType = 1
)

func ReadAirspeedType

func ReadAirspeedType(data []byte) AirspeedType

ReadAirspeedType reads the AirspeedType from a 56 bits data field

func (AirspeedType) ToString

func (bit AirspeedType) ToString() string

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

type DifferenceGNSSBaro

type DifferenceGNSSBaro uint16

DifferenceGNSSBaro is the Velocity EW Normal definition

Specified in Doc 9871 / Table A-2-9

func ReadDifferenceGNSSBaro

func ReadDifferenceGNSSBaro(data []byte) DifferenceGNSSBaro

ReadDifferenceGNSSBaro reads the DifferenceGNSSBaro from a 56 bits data field

func (DifferenceGNSSBaro) GetDifferenceGNSSBaro

func (DifferenceGNSSBaro DifferenceGNSSBaro) GetDifferenceGNSSBaro() int

GetDifferenceGNSSBaro returns the vertical rate. Note that the returned value will be 0 for DGBSNoInformation and the maximum for DGBSMaximum

func (DifferenceGNSSBaro) GetStatus

func (DifferenceGNSSBaro DifferenceGNSSBaro) GetStatus() DifferenceGNSSBaroStatus

GetStatus returns the status of the velocity

func (DifferenceGNSSBaro) ToString

func (DifferenceGNSSBaro DifferenceGNSSBaro) ToString() string

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

type DifferenceGNSSBaroSign

type DifferenceGNSSBaroSign byte

DifferenceGNSSBaroSign is the GNSS Altitude Sign Bit definition

Specified in Doc 9871 / Table A-2-9

const (
	// GASBAboveBaro indicates above baro alt.
	GASBAboveBaro DifferenceGNSSBaroSign = 0
	// GASBBelowBaro indicates below baro alt.
	GASBBelowBaro DifferenceGNSSBaroSign = 1
)

func ReadDifferenceGNSSBaroSign

func ReadDifferenceGNSSBaroSign(data []byte) DifferenceGNSSBaroSign

ReadDifferenceGNSSBaroSign reads the DifferenceGNSSBaroSign from a 56 bits data field

func (DifferenceGNSSBaroSign) ToString

func (bit DifferenceGNSSBaroSign) ToString() string

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

type DifferenceGNSSBaroStatus

type DifferenceGNSSBaroStatus int

DifferenceGNSSBaroStatus is the status of the DifferenceGNSSBaro

const (
	// DGBSNoInformation indicates no vertical rate
	DGBSNoInformation DifferenceGNSSBaroStatus = 0
	// DGBSRegular indicates that the DifferenceGNSSBaro is computed on the linear scale value of field * factor
	DGBSRegular DifferenceGNSSBaroStatus = 1
	// DGBSMaximum indicates that the DifferenceGNSSBaro field value indicates vertical rate greater the maximum of the scale
	DGBSMaximum DifferenceGNSSBaroStatus = 2
)

type DirectionEastWest

type DirectionEastWest byte

DirectionEastWest is the Direction Bit EW Velocity definition

Specified in Doc 9871 / Table A-2-9

const (
	// DEWEast indicates East
	DEWEast DirectionEastWest = 0
	// DEWWest indicates West
	DEWWest DirectionEastWest = 1
)

func ReadDirectionEastWest

func ReadDirectionEastWest(data []byte) DirectionEastWest

ReadDirectionEastWest reads the DirectionEastWest from a 56 bits data field

func (DirectionEastWest) ToString

func (bit DirectionEastWest) ToString() string

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

type DirectionNorthSouth

type DirectionNorthSouth byte

DirectionNorthSouth is the Direction Bit NS Velocity definition

Specified in Doc 9871 / Table A-2-9

const (
	// DNSNorth indicates North
	DNSNorth DirectionNorthSouth = 0
	// DNSSouth indicates South
	DNSSouth DirectionNorthSouth = 1
)

func ReadDirectionNorthSouth

func ReadDirectionNorthSouth(data []byte) DirectionNorthSouth

ReadDirectionNorthSouth reads the DirectionNorthSouth from a 56 bits data field

func (DirectionNorthSouth) ToString

func (bit DirectionNorthSouth) ToString() string

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

type IFRCapability

type IFRCapability byte

IFRCapability is the IFR Capability Flag definition

Specified in Doc 9871 / Table A-2-9

const (
	// IFRNoCapability indicates Transmitting aircraft has no capability for ADS-B based conflict detection or higher
	// level (class A1 or above) applications
	IFRNoCapability IFRCapability = 0
	// IFRCapable indicates Transmitting aircraft has capability for ADS-B-based conflict detection and higher level
	// (class A1 or above) applications.
	IFRCapable IFRCapability = 1
)

func ReadIFRCapability

func ReadIFRCapability(data []byte) IFRCapability

ReadIFRCapability reads the IFRCapability from a 56 bits data field

func (IFRCapability) ToString

func (flag IFRCapability) ToString() string

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

type IntentChange

type IntentChange byte

IntentChange is the Intent Change Flag definition

Specified in Doc 9871 / A.2.3.5.3

const (
	// ICNoChange indicates no change in intent
	ICNoChange IntentChange = 0
	// ICChangeInIntent indicates intent change
	ICChangeInIntent IntentChange = 1
)

func ReadIntentChange

func ReadIntentChange(data []byte) IntentChange

ReadIntentChange reads the IntentChange from a 56 bits data field

func (IntentChange) ToString

func (flag IntentChange) ToString() string

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

type MagneticHeading

type MagneticHeading uint

MagneticHeading is the Velocity Magnetic Heading definition

Specified in Doc 9871 / A.2.3.5.6

func ReadMagneticHeading

func ReadMagneticHeading(data []byte) MagneticHeading

ReadMagneticHeading reads the MagneticHeading from a 56 bits data field

func (MagneticHeading) ToString

func (heading MagneticHeading) ToString() string

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

type MagneticHeadingStatus

type MagneticHeadingStatus byte

MagneticHeadingStatus is the Magnetic Heading Status definition

Specified in Doc 9871 / Table A-2-9

const (
	// AVSBNotAvailable indicates magnetic heading not available
	AVSBNotAvailable MagneticHeadingStatus = 0
	// AVSBAvailable indicates magnetic heading available
	AVSBAvailable MagneticHeadingStatus = 1
)

func ReadMagneticHeadingStatus

func ReadMagneticHeadingStatus(data []byte) MagneticHeadingStatus

ReadMagneticHeadingStatus reads the MagneticHeadingStatus from a 56 bits data field

func (MagneticHeadingStatus) ToString

func (bit MagneticHeadingStatus) ToString() string

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

type NavigationUncertaintyCategory byte

NavigationUncertaintyCategory is the Navigation Uncertainty Category definition

Specified in Doc 9871 / Table A-2-9

const (
	// NUCPUnknown indicates Unknown
	NUCPUnknown NavigationUncertaintyCategory = 0
	// NUCPHorizontalLowerThan10VerticalLowerThan15Point2 indicates Horizontal < 10m/s and Vertical < 15.2m/s
	NUCPHorizontalLowerThan10VerticalLowerThan15Point2 NavigationUncertaintyCategory = 1
	// NUCPHorizontalLowerThan3VerticalLowerThan4Point6 indicates Horizontal < 3m/s and Vertical < 4.6m/s
	NUCPHorizontalLowerThan3VerticalLowerThan4Point6 NavigationUncertaintyCategory = 2
	// NUCPHorizontalLowerThan1VerticalLowerThan1Point5 indicates Horizontal < 1m/s and Vertical < 1.5m/s
	NUCPHorizontalLowerThan1VerticalLowerThan1Point5 NavigationUncertaintyCategory = 3
	// NUCPHorizontalLowerThan0Point3VerticalLowerThan0Point46 indicates Horizontal < 0.3m/s and Vertical < 0.46m/s
	NUCPHorizontalLowerThan0Point3VerticalLowerThan0Point46 NavigationUncertaintyCategory = 4
)

func ReadNavigationUncertaintyCategory

func ReadNavigationUncertaintyCategory(data []byte) NavigationUncertaintyCategory

ReadNavigationUncertaintyCategory reads the NavigationUncertaintyCategory from a 56 bits data field

func (category NavigationUncertaintyCategory) ToString() string

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

type Subtype

type Subtype byte

Subtype is the Airborne Velocity Subtype Code definition

Specified in Doc 9871 / Table A-2-9

const (
	// SubtypeReserved0 indicates Airborne Status Message
	SubtypeReserved0 Subtype = 0
	// SubtypeGroundSpeedNormal indicates Surface Status Message
	SubtypeGroundSpeedNormal Subtype = 1
	// SubtypeGroundSpeedSupersonic is reserved
	SubtypeGroundSpeedSupersonic Subtype = 2
	// SubtypeAirspeedNormal is reserved
	SubtypeAirspeedNormal Subtype = 3
	// SubtypeAirspeedSupersonic is reserved
	SubtypeAirspeedSupersonic Subtype = 4
	// SubtypeReserved5 is reserved
	SubtypeReserved5 Subtype = 5
	// SubtypeReserved6 is reserved
	SubtypeReserved6 Subtype = 6
	// SubtypeReserved7 is reserved
	SubtypeReserved7 Subtype = 7
)

func ReadAirborneVelocitySubtype

func ReadAirborneVelocitySubtype(data []byte) Subtype

ReadAirborneVelocitySubtype reads the Subtype from a 56 bits data field

func (Subtype) ToString

func (code Subtype) ToString() string

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

type VelocityEWNormal

type VelocityEWNormal uint16

VelocityEWNormal is the Velocity EW Normal definition

Specified in Doc 9871 / Table A-2-9

func ReadVelocityEWNormal

func ReadVelocityEWNormal(data []byte) VelocityEWNormal

ReadVelocityEWNormal reads the VelocityEWNormal from a 56 bits data field

func (VelocityEWNormal) GetStatus

func (velocity VelocityEWNormal) GetStatus() VelocityStatus

GetStatus returns the status of the velocity

func (VelocityEWNormal) GetVelocity

func (velocity VelocityEWNormal) GetVelocity() int

GetVelocity returns the velocity. Note that the returned value will be 0 for VelocityStatusNoInformation and the maximum for VelocityMaximum

func (VelocityEWNormal) ToString

func (velocity VelocityEWNormal) ToString() string

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

type VelocityEWSupersonic

type VelocityEWSupersonic uint16

VelocityEWSupersonic is the Velocity EW Supersonic definition

Specified in Doc 9871 / Table A-2-9

func ReadVelocityEWSupersonic

func ReadVelocityEWSupersonic(data []byte) VelocityEWSupersonic

ReadVelocityEWSupersonic reads the VelocityEWSupersonic from a 56 bits data field

func (VelocityEWSupersonic) GetStatus

func (velocity VelocityEWSupersonic) GetStatus() VelocityStatus

GetStatus returns the status of the velocity

func (VelocityEWSupersonic) GetVelocity

func (velocity VelocityEWSupersonic) GetVelocity() int

GetVelocity returns the velocity. Note that the returned value will be 0 for VelocityStatusNoInformation and the maximum for VelocityMaximum

func (VelocityEWSupersonic) ToString

func (velocity VelocityEWSupersonic) ToString() string

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

type VelocityNSNormal

type VelocityNSNormal uint16

VelocityNSNormal is the Velocity NS Normal definition

Specified in Doc 9871 / Table A-2-9

func ReadVelocityNSNormal

func ReadVelocityNSNormal(data []byte) VelocityNSNormal

ReadVelocityNSNormal reads the VelocityNSNormal from a 56 bits data field

func (VelocityNSNormal) GetStatus

func (velocity VelocityNSNormal) GetStatus() VelocityStatus

GetStatus returns the status of the velocity

func (VelocityNSNormal) GetVelocity

func (velocity VelocityNSNormal) GetVelocity() int

GetVelocity returns the velocity. Note that the returned value will be 0 for VelocityStatusNoInformation and the maximum for VelocityMaximum

func (VelocityNSNormal) ToString

func (velocity VelocityNSNormal) ToString() string

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

type VelocityNSSupersonic

type VelocityNSSupersonic uint16

VelocityNSSupersonic is the Velocity NS Supersonic definition

Specified in Doc 9871 / Table A-2-9

func ReadVelocityNSSupersonic

func ReadVelocityNSSupersonic(data []byte) VelocityNSSupersonic

ReadVelocityNSSupersonic reads the VelocityNSSupersonic from a 56 bits data field

func (VelocityNSSupersonic) GetStatus

func (velocity VelocityNSSupersonic) GetStatus() VelocityStatus

GetStatus returns the status of the velocity

func (VelocityNSSupersonic) GetVelocity

func (velocity VelocityNSSupersonic) GetVelocity() int

GetVelocity returns the velocity. Note that the returned value will be 0 for VelocityStatusNoInformation and the maximum for VelocityMaximum

func (VelocityNSSupersonic) ToString

func (velocity VelocityNSSupersonic) ToString() string

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

type VelocityStatus

type VelocityStatus int

VelocityStatus is the status of the velocity / airspeed information

const (
	// VelocityStatusNoInformation indicates no velocity information
	VelocityStatusNoInformation VelocityStatus = 0
	// VelocityStatusRegular indicates that the Velocity is computed on the linear scale value of field * factor
	VelocityStatusRegular VelocityStatus = 1
	// VelocityStatusMaximum indicates that the Velocity field value indicates velocity greater the maximum of the scale
	VelocityStatusMaximum VelocityStatus = 2
)

type VerticalRate

type VerticalRate uint16

VerticalRate is the Velocity EW Normal definition

Specified in Doc 9871 / Table A-2-9

func ReadVerticalRate

func ReadVerticalRate(data []byte) VerticalRate

ReadVerticalRate reads the VerticalRate from a 56 bits data field

func (VerticalRate) GetStatus

func (verticalRate VerticalRate) GetStatus() VerticalRateStatus

GetStatus returns the status of the velocity

func (VerticalRate) GetVerticalRate

func (verticalRate VerticalRate) GetVerticalRate() int

GetVerticalRate returns the vertical rate. Note that the returned value will be 0 for VerticalRateStatusNoInformation and the maximum for VerticalRateStatusMaximum

func (VerticalRate) ToString

func (verticalRate VerticalRate) ToString() string

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

type VerticalRateSign

type VerticalRateSign byte

VerticalRateSign is the Sign Bit for Vertical Rate definition

Specified in Doc 9871 / Table A-2-9

const (
	// VRSUp indicates Up
	VRSUp VerticalRateSign = 0
	// VRSDown indicates Down
	VRSDown VerticalRateSign = 1
)

func ReadVerticalRateSign

func ReadVerticalRateSign(data []byte) VerticalRateSign

ReadVerticalRateSign reads the VerticalRateSign from a 56 bits data field

func (VerticalRateSign) ToString

func (bit VerticalRateSign) ToString() string

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

type VerticalRateSource

type VerticalRateSource byte

VerticalRateSource is the Source Bit for Vertical Rate definition

Specified in Doc 9871 / Table A-2-9

const (
	// VRSGNSS indicates GNSS
	VRSGNSS VerticalRateSource = 0
	// VRSBaro indicates Baro
	VRSBaro VerticalRateSource = 1
)

func ReadVerticalRateSource

func ReadVerticalRateSource(data []byte) VerticalRateSource

ReadVerticalRateSource reads the VerticalRateSource from a 56 bits data field

func (VerticalRateSource) ToString

func (bit VerticalRateSource) ToString() string

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

type VerticalRateStatus

type VerticalRateStatus int

VerticalRateStatus is the status of the VerticalRate

const (
	// VerticalRateStatusNoInformation indicates no vertical rate
	VerticalRateStatusNoInformation VerticalRateStatus = 0
	// VerticalRateStatusRegular indicates that the VerticalRate is computed on the linear scale value of field * factor
	VerticalRateStatusRegular VerticalRateStatus = 1
	// VerticalRateStatusMaximum indicates that the VerticalRate field value indicates vertical rate greater the maximum of the scale
	VerticalRateStatusMaximum VerticalRateStatus = 2
)

Jump to

Keyboard shortcuts

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