mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 23:43:28 +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"`
|
Username string `json:"username,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GeoObject struct {
|
type Marker struct {
|
||||||
UID string `json:"uid,omitempty"`
|
|
||||||
Longitude float64 `json:"longitude"`
|
Longitude float64 `json:"longitude"`
|
||||||
Latitude float64 `json:"latitude"`
|
Latitude float64 `json:"latitude"`
|
||||||
Attitude string `json:"attitude"`
|
Attitude string `json:"attitude"`
|
||||||
Bearing int `json:"bearing,omitempty"`
|
Name string `json:"name"`
|
||||||
Distance int `json:"distance,omitempty"`
|
UID string `json:"uid"`
|
||||||
GeoObject string `json:"geoObject"`
|
Type string `json:"type,omitempty"`
|
||||||
How string `json:"how,omitempty"`
|
Course float64 `json:"course,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Azimuth float64 `json:"azimuth,omitempty"`
|
||||||
Timeout int `json:"timeout,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 {
|
type Message struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user