Documentation
¶
Index ¶
- type Format01
- func (message Format01) GetAircraftCategory() fields2.AircraftCategory
- func (message Format01) GetAircraftIdentification() fields2.AircraftIdentification
- func (message Format01) GetMaximumADSBLevel() adsb.MessageLevel
- func (message Format01) GetMessageFormat() adsb.MessageFormat
- func (message Format01) GetMinimumADSBLevel() adsb.MessageLevel
- func (message Format01) GetRegister() bds.Register
- func (message Format01) GetSubtype() adsb.Subtype
- func (message Format01) ToString() string
- type Format02
- func (message Format02) GetAircraftCategory() fields2.AircraftCategory
- func (message Format02) GetAircraftIdentification() fields2.AircraftIdentification
- func (message Format02) GetMaximumADSBLevel() adsb.MessageLevel
- func (message Format02) GetMessageFormat() adsb.MessageFormat
- func (message Format02) GetMinimumADSBLevel() adsb.MessageLevel
- func (message Format02) GetRegister() bds.Register
- func (message Format02) GetSubtype() adsb.Subtype
- func (message Format02) ToString() string
- type Format03
- func (message Format03) GetAircraftCategory() fields2.AircraftCategory
- func (message Format03) GetAircraftIdentification() fields2.AircraftIdentification
- func (message Format03) GetMaximumADSBLevel() adsb.MessageLevel
- func (message Format03) GetMessageFormat() adsb.MessageFormat
- func (message Format03) GetMinimumADSBLevel() adsb.MessageLevel
- func (message Format03) GetRegister() bds.Register
- func (message Format03) GetSubtype() adsb.Subtype
- func (message Format03) ToString() string
- type Format04
- func (message Format04) GetAircraftCategory() fields2.AircraftCategory
- func (message Format04) GetAircraftIdentification() fields2.AircraftIdentification
- func (message Format04) GetMaximumADSBLevel() adsb.MessageLevel
- func (message Format04) GetMessageFormat() adsb.MessageFormat
- func (message Format04) GetMinimumADSBLevel() adsb.MessageLevel
- func (message Format04) GetRegister() bds.Register
- func (message Format04) GetSubtype() adsb.Subtype
- func (message Format04) ToString() string
- type MessageBDS08
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format01 ¶
type Format01 struct { AircraftCategory fields2.AircraftCategorySetD AircraftIdentification fields2.AircraftIdentification }
Format01 is a message at the format BDS 0,8
func ReadFormat01 ¶ added in v0.3.0
ReadFormat01 reads a message at the format Format01
func (Format01) GetAircraftCategory ¶
func (message Format01) GetAircraftCategory() fields2.AircraftCategory
GetAircraftCategory returns the category of the aircraft
func (Format01) GetAircraftIdentification ¶
func (message Format01) GetAircraftIdentification() fields2.AircraftIdentification
GetAircraftIdentification returns the identification of the aircraft
func (Format01) GetMaximumADSBLevel ¶ added in v0.3.0
func (message Format01) GetMaximumADSBLevel() adsb.MessageLevel
GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message
func (Format01) GetMessageFormat ¶
func (message Format01) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (Format01) GetMinimumADSBLevel ¶ added in v0.3.0
func (message Format01) GetMinimumADSBLevel() adsb.MessageLevel
GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message
func (Format01) GetRegister ¶
GetRegister returns the register of the message
func (Format01) GetSubtype ¶ added in v0.3.0
GetSubtype returns the subtype of the message if any
type Format02 ¶
type Format02 struct { AircraftCategory fields2.AircraftCategorySetC AircraftIdentification fields2.AircraftIdentification }
Format02 is a message at the format BDS 0,8
func ReadFormat02 ¶ added in v0.3.0
ReadFormat02 reads a message at the format Format02
func (Format02) GetAircraftCategory ¶
func (message Format02) GetAircraftCategory() fields2.AircraftCategory
GetAircraftCategory returns the category of the aircraft
func (Format02) GetAircraftIdentification ¶
func (message Format02) GetAircraftIdentification() fields2.AircraftIdentification
GetAircraftIdentification returns the identification of the aircraft
func (Format02) GetMaximumADSBLevel ¶ added in v0.3.0
func (message Format02) GetMaximumADSBLevel() adsb.MessageLevel
GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message
func (Format02) GetMessageFormat ¶
func (message Format02) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (Format02) GetMinimumADSBLevel ¶ added in v0.3.0
func (message Format02) GetMinimumADSBLevel() adsb.MessageLevel
GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message
func (Format02) GetRegister ¶
GetRegister returns the register of the message
func (Format02) GetSubtype ¶ added in v0.3.0
GetSubtype returns the subtype of the message if any
type Format03 ¶
type Format03 struct { AircraftCategory fields2.AircraftCategorySetB AircraftIdentification fields2.AircraftIdentification }
Format03 is a message at the format BDS 0,8
func ReadFormat03 ¶ added in v0.3.0
ReadFormat03 reads a message at the format Format03
func (Format03) GetAircraftCategory ¶
func (message Format03) GetAircraftCategory() fields2.AircraftCategory
GetAircraftCategory returns the category of the aircraft
func (Format03) GetAircraftIdentification ¶
func (message Format03) GetAircraftIdentification() fields2.AircraftIdentification
GetAircraftIdentification returns the identification of the aircraft
func (Format03) GetMaximumADSBLevel ¶ added in v0.3.0
func (message Format03) GetMaximumADSBLevel() adsb.MessageLevel
GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message
func (Format03) GetMessageFormat ¶
func (message Format03) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (Format03) GetMinimumADSBLevel ¶ added in v0.3.0
func (message Format03) GetMinimumADSBLevel() adsb.MessageLevel
GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message
func (Format03) GetRegister ¶
GetRegister returns the register of the message
func (Format03) GetSubtype ¶ added in v0.3.0
GetSubtype returns the subtype of the message if any
type Format04 ¶
type Format04 struct { AircraftCategory fields2.AircraftCategorySetA AircraftIdentification fields2.AircraftIdentification }
Format04 is a message at the format BDS 0,8
func ReadFormat04 ¶ added in v0.3.0
ReadFormat04 reads a message at the format Format04
func (Format04) GetAircraftCategory ¶
func (message Format04) GetAircraftCategory() fields2.AircraftCategory
GetAircraftCategory returns the category of the aircraft
func (Format04) GetAircraftIdentification ¶
func (message Format04) GetAircraftIdentification() fields2.AircraftIdentification
GetAircraftIdentification returns the identification of the aircraft
func (Format04) GetMaximumADSBLevel ¶ added in v0.3.0
func (message Format04) GetMaximumADSBLevel() adsb.MessageLevel
GetMaximumADSBLevel returns the maximum ADSB ReaderLevel for the message
func (Format04) GetMessageFormat ¶
func (message Format04) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (Format04) GetMinimumADSBLevel ¶ added in v0.3.0
func (message Format04) GetMinimumADSBLevel() adsb.MessageLevel
GetMinimumADSBLevel returns the minimum ADSB ReaderLevel for the message
func (Format04) GetRegister ¶
GetRegister returns the register of the message
func (Format04) GetSubtype ¶ added in v0.3.0
GetSubtype returns the subtype of the message if any
type MessageBDS08 ¶
type MessageBDS08 interface { adsb.Message // GetAircraftCategory returns the aircraft category GetAircraftCategory() fields.AircraftCategory // GetAircraftIdentification returns the identity of the aircraft GetAircraftIdentification() fields.AircraftIdentification }
MessageBDS08 is the basic interface that ADSB messages at the format BDS 0,8 are expected to implement
func ReadBDS08 ¶
func ReadBDS08(adsbLevel adsb.ReaderLevel, data []byte) (MessageBDS08, adsb.ReaderLevel, error)
ReadBDS08 reads a message at the format BDS 0,8. As this format does not have changes from ADSB V0 to ADSB V2, the returned ADSBLevel is always the given one.
Params:
- adsbLevel: The ADSB level request (not used, but present for coherency)
- data: The data of the message must be 7 bytes
Returns the message read, the given ADSBLevel or an error