protocol/aprs: extract position and symbol to frame
Some checks failed
Run tests / test (1.25) (push) Failing after 1m36s
Run tests / test (stable) (push) Failing after 1m36s

This commit is contained in:
2026-03-02 22:33:15 +01:00
parent 63040a44b3
commit d4a693365d
3 changed files with 33 additions and 12 deletions

View File

@@ -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) {