Documentation ¶
Index ¶
- type Format01
- func (message *Format01) GetAircraftCategory() fields2.AircraftCategory
- func (message *Format01) GetAircraftIdentification() fields2.AircraftIdentification
- func (message *Format01) GetMessageFormat() adsb.MessageFormat
- func (message *Format01) GetRegister() bds.Register
- func (message *Format01) ToString() string
- type Format02
- func (message *Format02) GetAircraftCategory() fields2.AircraftCategory
- func (message *Format02) GetAircraftIdentification() fields2.AircraftIdentification
- func (message *Format02) GetMessageFormat() adsb.MessageFormat
- func (message *Format02) GetRegister() bds.Register
- func (message *Format02) ToString() string
- type Format03
- func (message *Format03) GetAircraftCategory() fields2.AircraftCategory
- func (message *Format03) GetAircraftIdentification() fields2.AircraftIdentification
- func (message *Format03) GetMessageFormat() adsb.MessageFormat
- func (message *Format03) GetRegister() bds.Register
- func (message *Format03) ToString() string
- type Format04
- func (message *Format04) GetAircraftCategory() fields2.AircraftCategory
- func (message *Format04) GetAircraftIdentification() fields2.AircraftIdentification
- func (message *Format04) GetMessageFormat() adsb.MessageFormat
- func (message *Format04) GetRegister() bds.Register
- 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 (*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) GetMessageFormat ¶
func (message *Format01) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (*Format01) GetRegister ¶
GetRegister returns the register of the message
type Format02 ¶
type Format02 struct { AircraftCategory fields2.AircraftCategorySetC AircraftIdentification fields2.AircraftIdentification }
Format02 is a message at the format BDS 0,8
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) GetMessageFormat ¶
func (message *Format02) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (*Format02) GetRegister ¶
GetRegister returns the register of the message
type Format03 ¶
type Format03 struct { AircraftCategory fields2.AircraftCategorySetB AircraftIdentification fields2.AircraftIdentification }
Format03 is a message at the format BDS 0,8
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) GetMessageFormat ¶
func (message *Format03) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (*Format03) GetRegister ¶
GetRegister returns the register of the message
type Format04 ¶
type Format04 struct { AircraftCategory fields2.AircraftCategorySetA AircraftIdentification fields2.AircraftIdentification }
Format04 is a message at the format BDS 0,8
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) GetMessageFormat ¶
func (message *Format04) GetMessageFormat() adsb.MessageFormat
GetMessageFormat returns the ADSB format of the message
func (*Format04) GetRegister ¶
GetRegister returns the register of the message
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 ¶
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