mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 20:53:30 +00:00
changed the structs to match the OTS api types
This commit is contained in:
@@ -5,17 +5,21 @@ type Payload struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
}
|
||||
|
||||
type GeoObject struct {
|
||||
UID string `json:"uid,omitempty"`
|
||||
type Marker struct {
|
||||
Longitude float64 `json:"longitude"`
|
||||
Latitude float64 `json:"latitude"`
|
||||
Attitude string `json:"attitude"`
|
||||
Bearing int `json:"bearing,omitempty"`
|
||||
Distance int `json:"distance,omitempty"`
|
||||
GeoObject string `json:"geoObject"`
|
||||
How string `json:"how,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Timeout int `json:"timeout,omitempty"`
|
||||
Name string `json:"name"`
|
||||
UID string `json:"uid"`
|
||||
Type string `json:"type,omitempty"`
|
||||
Course float64 `json:"course,omitempty"`
|
||||
Azimuth float64 `json:"azimuth,omitempty"`
|
||||
Speed float64 `json:"speed,omitempty"`
|
||||
Battery float64 `json:"battery,omitempty"`
|
||||
FOV int `json:"fov,omitempty"`
|
||||
CE int `json:"ce,omitempty"`
|
||||
HAE int `json:"hae,omitempty"`
|
||||
LE int `json:"le,omitempty"`
|
||||
}
|
||||
|
||||
type Message struct {
|
||||
|
||||
Reference in New Issue
Block a user