stratux/uatparse/uatdata.go

31 wiersze
511 B
Go
Czysty Zwykły widok Historia

2015-12-13 23:43:23 +00:00
package uatparse
// AIRMET = AIRMET/SIGMET/ (TFR?)
const (
UATMSG_TEXT = 1
UATMSG_NEXRAD = 2
UATMSG_AIRMET = 3 // AIRMET. Decoded.
// How the coordinates should be used in a graphical AIRMET.
AIRMET_POLYGON = 1
AIRMET_ELLIPSE = 2
AIRMET_PRISM = 3
AIRMET_3D = 4
)
// Points can be in 3D - take care that altitude is used correctly.
2015-12-15 03:41:47 +00:00
type GeoPoint struct {
2015-12-13 23:43:23 +00:00
Lat float64
Lon float64
Alt int32
}
type UATAirmet struct {
2015-12-15 03:41:47 +00:00
Points []GeoPoint // Points
2015-12-13 23:43:23 +00:00
}
type UATMsgDecoded struct {
Type int
}