Documentation ¶
Index ¶
- type DirectionEastWest
- type DirectionNorthSouth
- type IFRCapability
- type IntentChange
- type MagneticHeadingStatus
- type NavigationUncertaintyCategory
- type NumericValueStatus
- func ReadAirspeedNormal(data []byte) (uint16, NumericValueStatus)
- func ReadAirspeedSupersonic(data []byte) (uint16, NumericValueStatus)
- func ReadHeightDifference(data []byte) (int16, NumericValueStatus)
- func ReadVelocityEWNormal(data []byte) (uint16, NumericValueStatus)
- func ReadVelocityEWSupersonic(data []byte) (uint16, NumericValueStatus)
- func ReadVelocityNSNormal(data []byte) (uint16, NumericValueStatus)
- func ReadVelocityNSSupersonic(data []byte) (uint16, NumericValueStatus)
- func ReadVerticalRate(data []byte) (int16, NumericValueStatus)
- type Subtype
- type VerticalRateSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 MagneticHeadingStatus ¶
type MagneticHeadingStatus byte
MagneticHeadingStatus is the Magnetic Heading Status definition
Specified in Doc 9871 / Table A-2-9
const ( // MHSNotAvailable indicates magnetic heading not available MHSNotAvailable MagneticHeadingStatus = 0 // MHSAvailable indicates magnetic heading available MHSAvailable MagneticHeadingStatus = 1 )
func ReadMagneticHeading ¶
func ReadMagneticHeading(data []byte) (float32, MagneticHeadingStatus)
ReadMagneticHeading reads the MagneticHeading 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 ¶
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 (NavigationUncertaintyCategory) ToString ¶
func (category NavigationUncertaintyCategory) ToString() string
ToString returns a basic, but readable, representation of the field
type NumericValueStatus ¶ added in v0.6.0
type NumericValueStatus int
NumericValueStatus is the status of the numeric values, such as air speed, velocity, etc.
const ( // NVSNoInformation indicates no velocity information NVSNoInformation NumericValueStatus = 0 // NVSRegular indicates that the Velocity is computed on the linear scale value of field * factor NVSRegular NumericValueStatus = 1 // NVSMaximum indicates that the Velocity field value indicates velocity greater the maximum of the scale NVSMaximum NumericValueStatus = 2 )
func ReadAirspeedNormal ¶
func ReadAirspeedNormal(data []byte) (uint16, NumericValueStatus)
ReadAirspeedNormal reads the AirSpeed Normal from a 56 bits data field
func ReadAirspeedSupersonic ¶
func ReadAirspeedSupersonic(data []byte) (uint16, NumericValueStatus)
ReadAirspeedSupersonic reads the AirSpeed Supersonic from a 56 bits data field
func ReadHeightDifference ¶ added in v0.6.0
func ReadHeightDifference(data []byte) (int16, NumericValueStatus)
ReadHeightDifference reads the Height difference from a 56 bits data field
func ReadVelocityEWNormal ¶
func ReadVelocityEWNormal(data []byte) (uint16, NumericValueStatus)
ReadVelocityEWNormal reads the Velocity EW Normal from a 56 bits data field
func ReadVelocityEWSupersonic ¶
func ReadVelocityEWSupersonic(data []byte) (uint16, NumericValueStatus)
ReadVelocityEWSupersonic reads the Velocity EW Supersonic from a 56 bits data field
func ReadVelocityNSNormal ¶
func ReadVelocityNSNormal(data []byte) (uint16, NumericValueStatus)
ReadVelocityNSNormal reads the Velocity NS Normal from a 56 bits data field
func ReadVelocityNSSupersonic ¶
func ReadVelocityNSSupersonic(data []byte) (uint16, NumericValueStatus)
ReadVelocityNSSupersonic reads the Velocity NS Supersonic from a 56 bits data field
func ReadVerticalRate ¶
func ReadVerticalRate(data []byte) (int16, NumericValueStatus)
ReadVerticalRate reads the Vertical Rate from a 56 bits data field
func (NumericValueStatus) ToString ¶ added in v0.6.0
func (vs NumericValueStatus) 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 ( // 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 )
func ReadSubtype ¶ added in v0.3.0
ReadSubtype reads the Subtype from a 56 bits data 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