Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MtypeTableCustom = map[string]string{
"111": "C0: Custom-0",
"110": "C1: Custom-1",
"101": "C2: Custom-2",
"100": "C3: Custom-3",
"011": "C4: Custom-4",
"010": "C5: Custom-5",
"001": "C6: Custom-6",
"000": "Emergency",
}
View Source
var MtypeTableStd = map[string]string{
"111": "M0: Off Duty",
"110": "M1: En Route",
"101": "M2: In Service",
"100": "M3: Returning",
"011": "M4: Committed",
"010": "M5: Special",
"001": "M6: Priority",
"000": "Emergency",
}
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.2.6
type Option func(*config)
Option provides a basic option type
func WithDisableToCallsignValidate ¶ added in v1.2.6
func WithDisableToCallsignValidate() Option
WithDisableToCallsignValidate disables to callsign validate
type PacketType ¶ added in v1.3.0
type PacketType uint32
PacketType is a bitmask of the high-level packet category, used by type filters (t/...).
const ( TypePosition PacketType = 1 << iota // p - position (compressed/uncompressed/mic-e) TypeObject // o - object TypeItem // i - item TypeMessage // m - message (incl. ack/rej) TypeQuery // q - query TypeStatus // s - status report TypeTelemetry // t - telemetry TypeUserDef // u - user-defined TypeWeather // w - weather TypeNWS // n - NWS broadcast (subset of message/object) TypeBulletin // bulletin / announcement (subset of message) TypeThirdParty // third-party traffic wrapper TypeNMEA // raw NMEA / GPS sentence TypeCWOP // c - CWOP weather (subset of weather) )
func (PacketType) Has ¶ added in v1.3.0
func (t PacketType) Has(b PacketType) bool
Has reports whether the given type bit is set.
type Parsed ¶
type Parsed struct {
Raw string
From string
To string
Path []string
Format string
PacketType PacketType
HasPosition bool
Symbol []string
Lat float64
Lon float64
Comment string
MessageCapable bool
ObjectName string
ObjectFormat string
Alive bool
RawTimestamp string
Timestamp int
GPSFixStatus bool
Altitude float64
Course float64
Speed float64
RadioRange float64
PosAmbiguity int
Bearing int
Title string
NRQ int
PHG string
PHGPower float64
PHGHeight float64
PHGGain float64
PHGDir string
PHGRange float64
PHGRate int
RNG float64
DAODatumByte string
Telemetry TelemetryData
TelemetryMicE []int
TPARM []string
TUNIT []string
TEQNS [][]float64
TBITS string
Weather map[string]float64
SubPacket *Parsed
Body string
ID string
Type string
Status string
MessageText string
AID string
BID string
Identifier string
Addressee string
Response string
MsgNo string
AckMsgNo string
MType string
MBits string
}
Parsed is a struct that storage parsed APRS packet
type TelemetryData ¶
TelemetryData is the struct for telemetry data
Click to show internal directories.
Click to hide internal directories.