Documentation ¶
Index ¶
- type SBSMessage
- func (message *SBSMessage) FromString(message_string string) (err error)
- func (message SBSMessage) GetAltitude() (altitude int, err error)
- func (message SBSMessage) GetCallsign() (callsign string, err error)
- func (message SBSMessage) GetFlightId() (flightid string, err error)
- func (message SBSMessage) GetLatLong() (lat float64, lon float64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SBSMessage ¶
type SBSMessage struct {
// contains filtered or unexported fields
}
*
- Basestation messages consist of comma separated fields described here
- @see http://woodair.net/SBS/Article/Barebones42_Socket_Data.htm *
- Different message types contain different data, eg callsign information
- is not usually transmitted alongside positional information, however
- a common 'flight id' is transmitted for each flight so different attributes
- such as call sign, altitude, position etc can be tied together using the
- flightid field.
func (*SBSMessage) FromString ¶
func (message *SBSMessage) FromString(message_string string) (err error)
func (SBSMessage) GetAltitude ¶
func (message SBSMessage) GetAltitude() (altitude int, err error)
func (SBSMessage) GetCallsign ¶
func (message SBSMessage) GetCallsign() (callsign string, err error)
func (SBSMessage) GetFlightId ¶
func (message SBSMessage) GetFlightId() (flightid string, err error)
func (SBSMessage) GetLatLong ¶
func (message SBSMessage) GetLatLong() (lat float64, lon float64, err error)
Click to show internal directories.
Click to hide internal directories.