Documentation ¶
Index ¶
- type CompactPositionReportingFormat
- type ContainmentRadius
- type EncodedLatitude
- type EncodedLongitude
- type GroundTrack
- type GroundTrackStatus
- type HorizontalContainmentRadius
- type HorizontalContainmentRadiusV1
- type HorizontalContainmentRadiusV2
- type HorizontalProtectionLimit
- type Movement
- type MovementStatus
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ContainmentRadius ¶
type ContainmentRadius byte
ContainmentRadius is the 95% Containment radius, μ and v, on horizontal and vertical position error for Airborne aircraft format definition
Specified in Doc 9871 / A.2.3.1
const ( // CRLowerThan3M denotes μ < 3m CRLowerThan3M ContainmentRadius = 0 // CRBetween3MAnd10M denotes 3 m <= μ < 10 m CRBetween3MAnd10M ContainmentRadius = 1 // CRBetween10MAnd92Point6M denotes 10 m <= μ < 92.6 m (0.05 NM) CRBetween10MAnd92Point6M ContainmentRadius = 2 // CRGreaterThan92Point6M denotes 92.6 m (0.05 NM) <= μ CRGreaterThan92Point6M ContainmentRadius = 3 )
func (ContainmentRadius) GetHorizontalContainmentHigherBound ¶
func (cr ContainmentRadius) GetHorizontalContainmentHigherBound() float64
GetHorizontalContainmentHigherBound returns the higher bound of the CR. If the given CR does not have a higher bound returns -1. Notes:
- The bound is returned in meters.
- The bound is exclusive to the value, meaning that value < bound.
func (ContainmentRadius) GetHorizontalContainmentLowerBound ¶
func (cr ContainmentRadius) GetHorizontalContainmentLowerBound() float64
GetHorizontalContainmentLowerBound returns the lower bound of the CR. If the given CR does not have a lower bound returns -1. Notes:
- The bound is returned in meters.
- The bound is inclusive to the value, meaning that bound <= value.
func (ContainmentRadius) ToString ¶
func (cr ContainmentRadius) 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 GroundTrack ¶
type GroundTrack byte
GroundTrack is the Ground Track definition
Specified in Doc 9871 / A.2.3.3.2
func ReadGroundTrack ¶
func ReadGroundTrack(data []byte) GroundTrack
ReadGroundTrack reads the GroundTrack from a 56 bits data field
func (GroundTrack) ToString ¶
func (groundTrack GroundTrack) ToString() string
ToString returns a basic, but readable, representation of the field
type GroundTrackStatus ¶
type GroundTrackStatus byte
GroundTrackStatus is the Ground Track Status definition
Specified in Doc 9871 / Table A-2-6
const ( // GTSInvalid indicates invalid GTSInvalid GroundTrackStatus = 0 // GTSValid indicates valid GTSValid GroundTrackStatus = 1 )
func ReadGroundTrackStatus ¶
func ReadGroundTrackStatus(data []byte) GroundTrackStatus
ReadGroundTrackStatus reads the GroundTrackStatus from a 56 bits data field
func (GroundTrackStatus) ToString ¶
func (status GroundTrackStatus) ToString() string
ToString returns a basic, but readable, representation of the field
type HorizontalContainmentRadius ¶
type HorizontalContainmentRadius interface { common.Printable // ToHorizontalContainmentRadius returns the HorizontalContainmentRadius ToHorizontalContainmentRadius() HorizontalContainmentRadius }
HorizontalContainmentRadius is the general definition for the HorizontalContainmentRadius
type HorizontalContainmentRadiusV1 ¶
type HorizontalContainmentRadiusV1 byte
HorizontalContainmentRadiusV1 is the Horizontal Containment Radius Barometric definition for ADBS V1 messages
Specified in Doc 9871 / C.2.3.1
const ( // HCRV1RcLowerThan7Point5M indicates Rc < 7.5 m HCRV1RcLowerThan7Point5M HorizontalContainmentRadiusV1 = 0 // HCRV1RcLowerThan25M indicates Rc < 25 m HCRV1RcLowerThan25M HorizontalContainmentRadiusV1 = 1 // HCRV1RcLowerThan75M indicates Rc < 75 m HCRV1RcLowerThan75M HorizontalContainmentRadiusV1 = 2 // HCRV1RcLowerThan0Point1NM indicates Rc < 0.1 NM (185.2 m) HCRV1RcLowerThan0Point1NM HorizontalContainmentRadiusV1 = 3 // HCRV1RcGreaterThan0Point1NM indicates Rc >= 0.1 NM (185.2 m) or unknown HCRV1RcGreaterThan0Point1NM HorizontalContainmentRadiusV1 = 4 )
func (HorizontalContainmentRadiusV1) ToHorizontalContainmentRadius ¶
func (hcr HorizontalContainmentRadiusV1) ToHorizontalContainmentRadius() HorizontalContainmentRadius
ToHorizontalContainmentRadius returns the HorizontalContainmentRadius
func (HorizontalContainmentRadiusV1) ToString ¶
func (hcr HorizontalContainmentRadiusV1) ToString() string
ToString returns a basic, but readable, representation of the field
type HorizontalContainmentRadiusV2 ¶
type HorizontalContainmentRadiusV2 byte
HorizontalContainmentRadiusV2 is the Horizontal Containment Radius Barometric definition for ADBS V2 messages
Specified in Doc 9871 / C.2.3.1
const ( // HCRV2RcLowerThan7Point5M indicates Rc < 7.5 m HCRV2RcLowerThan7Point5M HorizontalContainmentRadiusV2 = 0 // HCRV2RcLowerThan25M indicates Rc < 25 m HCRV2RcLowerThan25M HorizontalContainmentRadiusV2 = 1 // HCRV2RcLowerThan75M indicates Rc < 75 m HCRV2RcLowerThan75M HorizontalContainmentRadiusV2 = 2 // HCRV2RcLowerThan0Point1NM indicates Rc < 0.1 NM (185.2 m) HCRV2RcLowerThan0Point1NM HorizontalContainmentRadiusV2 = 3 // HCRV2RcLowerThan0Point2NM indicates Rc < 0.2 NM (370.4 m) HCRV2RcLowerThan0Point2NM HorizontalContainmentRadiusV2 = 4 // HCRV2RcLowerThan0Point3NM indicates Rc < 0.3 NM (555.6 m) HCRV2RcLowerThan0Point3NM HorizontalContainmentRadiusV2 = 5 // HCRV2RcLowerThan0Point6NM indicates Rc < 0.6 NM (1111.2 m) HCRV2RcLowerThan0Point6NM HorizontalContainmentRadiusV2 = 6 // HCRV2RcGreaterThan0Point6NM indicates Rc >= 0.6 NM (1111.2 m) or unknown HCRV2RcGreaterThan0Point6NM HorizontalContainmentRadiusV2 = 7 )
func (HorizontalContainmentRadiusV2) ToHorizontalContainmentRadius ¶
func (hcr HorizontalContainmentRadiusV2) ToHorizontalContainmentRadius() HorizontalContainmentRadius
ToHorizontalContainmentRadius returns the HorizontalContainmentRadius
func (HorizontalContainmentRadiusV2) ToString ¶
func (hcr HorizontalContainmentRadiusV2) ToString() string
ToString returns a basic, but readable, representation of the field
type HorizontalProtectionLimit ¶
type HorizontalProtectionLimit byte
HorizontalProtectionLimit is the HPL (Horizontal Protection Limit) definition
Specified in Doc 9871 / A.2.3.1
const ( // HPLLowerThan7Point5M denotes HPL < 7.5 m HPLLowerThan7Point5M HorizontalProtectionLimit = 0 // HPLLowerThan25M denotes HPL < 25 m HPLLowerThan25M HorizontalProtectionLimit = 1 // HPLLowerThan185Point2M denotes HPL < 185.2 m HPLLowerThan185Point2M HorizontalProtectionLimit = 2 // HPLGreaterThan185Point2M denotes HPL >= 185.2 m HPLGreaterThan185Point2M HorizontalProtectionLimit = 3 )
func (HorizontalProtectionLimit) GetHPLHigherBound ¶
func (hpl HorizontalProtectionLimit) GetHPLHigherBound() float64
GetHPLHigherBound returns the higher bound of the HPL. If the given HPL does not have a higher bound returns -1. Notes:
- The bound is returned in meters.
- The bound is exclusive to the value, meaning that value < bound.
func (HorizontalProtectionLimit) GetHPLLowerBound ¶
func (hpl HorizontalProtectionLimit) GetHPLLowerBound() float64
GetHPLLowerBound returns the lower bound of the HPL. If the given HPL does not have a lower bound returns -1. Notes:
- The bound is returned in meters.
- The bound is inclusive to the value, meaning that bound <= value.
func (HorizontalProtectionLimit) ToString ¶
func (hpl HorizontalProtectionLimit) ToString() string
ToString returns a basic, but readable, representation of the field
type Movement ¶
type Movement byte
Movement is the Movement definition
Specified in Doc 9871 / A.2.3.3.1
func ReadMovement ¶
ReadMovement reads the Movement from a 56 bits data field
func (Movement) GetMovement ¶
GetMovement returns the Movement in km/h. Note that the returned value will be 0 if movement status is MSNoInformation or MSReserved* and returned 324.1 if movement status is MsAboveMaximum.
func (Movement) GetStatus ¶
func (movement Movement) GetStatus() MovementStatus
GetStatus returns the status of the altitude
type MovementStatus ¶
type MovementStatus int
MovementStatus is the status of the Movement information
const ( // MSNoInformation indicates no information MSNoInformation MovementStatus = 0 // MSValid indicates that Movement is valid MSValid MovementStatus = 1 // MSAboveMaximum indicates that the Movement is above the maximum MSAboveMaximum MovementStatus = 2 // MSReservedDecelerating indicates that the value is reserved MSReservedDecelerating MovementStatus = 3 // MSReservedAccelerating indicates that the value is reserved MSReservedAccelerating MovementStatus = 4 // MSReservedBackingUp indicates that the value is reserved MSReservedBackingUp MovementStatus = 5 )
Source Files ¶
- compact_position_reporting_format.go
- containment_radius.go
- encoded_latitude.go
- encoded_longitude.go
- ground_track.go
- ground_track_status.go
- horizontal_containment_radius.go
- horizontal_containment_radius_v1.go
- horizontal_containment_radius_v2.go
- horizontal_protection_limit.go
- movement.go
- movement_status.go
- time.go