utils

package
v0.0.0-...-d3ce41d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRS

type CRS struct {
	Type       string   `json:"type"`
	Properties CRSProps `json:"properties"`
}

type CRSProps

type CRSProps struct {
	Name string `json:"name"`
}

type FlightPlanJson

type FlightPlanJson struct {
	Type     string        `json:"type"`
	Name     string        `json:"name"`
	CRS      CRS           `json:"crs"`
	Features []LineFeature `json:"features"`
}

type FlightPlanProp

type FlightPlanProp struct {
	Id            int     `json:"Id"`
	FlightMileage float64 `json:"length"`
	TaskName      string  `json:"task_name"`
	TaskType      string  `json:"task_type"`
	Minimum       string  `json:"minimum"`
	Maximum       string  `json:"maximum"`
	Lowest        string  `json:"lowest"`
	Highest       string  `json:"highest"`
	Describe      string  `json:"ps"`
}

type HoldingAreaJson

type HoldingAreaJson struct {
	Type     string         `json:"type"`
	Name     string         `json:"name"`
	CRS      CRS            `json:"crs"`
	Features []PointFeature `json:"features"`
}

type HoldingAreaProp

type HoldingAreaProp struct {
	Id     int     `json:"Id"`
	Name   string  `json:"name"`
	Radius float64 `json:"radius"`
}

type LineFeature

type LineFeature struct {
	Type       string         `json:"type"`
	ID         int            `json:"id"`
	Properties FlightPlanProp `json:"properties"`
	Geometry   LineGeometry   `json:"geometry"`
}

type LineGeometry

type LineGeometry struct {
	Type        string      `json:"type"`
	Coordinates [][]float64 `json:"coordinates"`
}

type PointFeature

type PointFeature struct {
	Type       string          `json:"type"`
	ID         int             `json:"id"`
	Properties HoldingAreaProp `json:"properties"`
	Geometry   PointGeometry   `json:"geometry"`
}

type PointGeometry

type PointGeometry struct {
	Type        string    `json:"type"`
	Coordinates []float64 `json:"coordinates"`
}

type UavMatedataJson

type UavMatedataJson struct {
	Drones []UavMetadata `json:"Drones"`
}

type UavMetadata

type UavMetadata struct {
	DroneName             string `json:"DroneName"`
	UID                   string `json:"UID"`
	Model                 string `json:"型号"`
	Manufacturer          string `json:"制造商"`
	RegistrationDate      string `json:"注册日期"`
	Owner                 string `json:"拥有者"`
	Operator              string `json:"运营者"`
	CameraSpec            string `json:"摄像头规格"`
	SensorType            string `json:"传感器类型"`
	MaxFlightSpeed        string `json:"最大航行速度"`
	Highest               string `json:"最大飞行高度"`
	PowerConsumptionPerKM string `json:"每公里耗电量"`
	BatteryCapacity       string `json:"电池容量"`
}

UavMetadata 结构体保持不变

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL