protocol/aprs: extract position and symbol to frame
This commit is contained in:
@@ -13,11 +13,22 @@ var (
|
||||
|
||||
// Frame represents a single APRS frame.
|
||||
type Frame struct {
|
||||
// Addressing
|
||||
Source Address `json:"source"`
|
||||
Destination Address `json:"destination"`
|
||||
Path Path `json:"path"`
|
||||
Raw Raw `json:"raw"`
|
||||
Data Data `json:"data,omitempty"`
|
||||
|
||||
// Raw payload
|
||||
Raw Raw `json:"raw"`
|
||||
|
||||
// Data contained in the raw payload.
|
||||
Data Data `json:"data,omitempty"`
|
||||
|
||||
// Data extracted
|
||||
Latitude float64
|
||||
Longitude float64
|
||||
Altitude float64
|
||||
Symbol string
|
||||
}
|
||||
|
||||
func Parse(s string) (*Frame, error) {
|
||||
|
||||
Reference in New Issue
Block a user