Documentation ¶
Index ¶
- Variables
- func IsValidCompressedSymTable(c byte) bool
- func IsValidUncompressedSymTable(c byte) bool
- func ParseTime(s string) (time.Time, error)
- type Address
- type DataType
- type OmniDFStrength
- type Packet
- type Path
- type Payload
- type Position
- func ParseCompressedPosition(s string) (Position, string, error)
- func ParseMicE(s, dest string) (Position, error)
- func ParsePosition(s string, compressed bool) (Position, string, error)
- func ParsePositionBoth(s string) (Position, string, error)
- func ParsePositionGrid(s string) (Position, string, error)
- func ParseUncompressedPosition(s string) (Position, string, error)
- type PowerHeightGain
- type Symbol
- type TimeFormatError
- type Velocity
- type Wind
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidPacket signals a corrupted/unknown APRS packet. ErrInvalidPacket = errors.New("aprs: invalid packet") // ErrInvalidPosition signals a corrupted APRS position report. ErrInvalidPosition = errors.New("aprs: invalid position") )
View Source
var (
ErrAddressInvalid = errors.New(`aprs: invalid address`)
)
View Source
var (
ErrBase91Decode = errors.New("aprs: invalid base-91 encoding")
)
Functions ¶
Types ¶
type OmniDFStrength ¶
func (OmniDFStrength) Directivity ¶
func (o OmniDFStrength) Directivity() float64
func (OmniDFStrength) Gain ¶
func (o OmniDFStrength) Gain() int
func (OmniDFStrength) Height ¶
func (o OmniDFStrength) Height() float64
func (OmniDFStrength) Strength ¶
func (o OmniDFStrength) Strength() int
type Packet ¶
type Packet struct { Raw string Src *Address Dst *Address Path Path Payload Payload Position *Position Time *time.Time Altitude float64 // Feet Velocity Velocity Wind Wind PHG PowerHeightGain DFS OmniDFStrength Range float64 // Miles Symbol Symbol Comment string Message string MessageTo *Address // contains filtered or unexported fields }
func ParsePacket ¶
type Position ¶
type PowerHeightGain ¶
func (PowerHeightGain) Directivity ¶
func (p PowerHeightGain) Directivity() float64
func (PowerHeightGain) Gain ¶
func (p PowerHeightGain) Gain() int
func (PowerHeightGain) Height ¶
func (p PowerHeightGain) Height() float64
func (PowerHeightGain) Power ¶
func (p PowerHeightGain) Power() int
type TimeFormatError ¶
type TimeFormatError struct {
Time string
}
func (TimeFormatError) Error ¶
func (err TimeFormatError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.