mission_raw

package
v0.0.0-...-4a7e8af Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MissionRawResult_Result_name = map[int32]string{
		0:  "RESULT_UNKNOWN",
		1:  "RESULT_SUCCESS",
		2:  "RESULT_ERROR",
		3:  "RESULT_TOO_MANY_MISSION_ITEMS",
		4:  "RESULT_BUSY",
		5:  "RESULT_TIMEOUT",
		6:  "RESULT_INVALID_ARGUMENT",
		7:  "RESULT_UNSUPPORTED",
		8:  "RESULT_NO_MISSION_AVAILABLE",
		9:  "RESULT_TRANSFER_CANCELLED",
		10: "RESULT_FAILED_TO_OPEN_QGC_PLAN",
		11: "RESULT_FAILED_TO_PARSE_QGC_PLAN",
		12: "RESULT_NO_SYSTEM",
	}
	MissionRawResult_Result_value = map[string]int32{
		"RESULT_UNKNOWN":                  0,
		"RESULT_SUCCESS":                  1,
		"RESULT_ERROR":                    2,
		"RESULT_TOO_MANY_MISSION_ITEMS":   3,
		"RESULT_BUSY":                     4,
		"RESULT_TIMEOUT":                  5,
		"RESULT_INVALID_ARGUMENT":         6,
		"RESULT_UNSUPPORTED":              7,
		"RESULT_NO_MISSION_AVAILABLE":     8,
		"RESULT_TRANSFER_CANCELLED":       9,
		"RESULT_FAILED_TO_OPEN_QGC_PLAN":  10,
		"RESULT_FAILED_TO_PARSE_QGC_PLAN": 11,
		"RESULT_NO_SYSTEM":                12,
	}
)

Enum value maps for MissionRawResult_Result.

View Source
var File_mission_raw_proto protoreflect.FileDescriptor
View Source
var MissionRawService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mavsdk.rpc.mission_raw.MissionRawService",
	HandlerType: (*MissionRawServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UploadMission",
			Handler:    _MissionRawService_UploadMission_Handler,
		},
		{
			MethodName: "CancelMissionUpload",
			Handler:    _MissionRawService_CancelMissionUpload_Handler,
		},
		{
			MethodName: "DownloadMission",
			Handler:    _MissionRawService_DownloadMission_Handler,
		},
		{
			MethodName: "CancelMissionDownload",
			Handler:    _MissionRawService_CancelMissionDownload_Handler,
		},
		{
			MethodName: "StartMission",
			Handler:    _MissionRawService_StartMission_Handler,
		},
		{
			MethodName: "PauseMission",
			Handler:    _MissionRawService_PauseMission_Handler,
		},
		{
			MethodName: "ClearMission",
			Handler:    _MissionRawService_ClearMission_Handler,
		},
		{
			MethodName: "SetCurrentMissionItem",
			Handler:    _MissionRawService_SetCurrentMissionItem_Handler,
		},
		{
			MethodName: "ImportQgroundcontrolMission",
			Handler:    _MissionRawService_ImportQgroundcontrolMission_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeMissionProgress",
			Handler:       _MissionRawService_SubscribeMissionProgress_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeMissionChanged",
			Handler:       _MissionRawService_SubscribeMissionChanged_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "mission_raw.proto",
}

MissionRawService_ServiceDesc is the grpc.ServiceDesc for MissionRawService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMissionRawServiceServer

func RegisterMissionRawServiceServer(s grpc.ServiceRegistrar, srv MissionRawServiceServer)

Types

type CancelMissionDownloadRequest

type CancelMissionDownloadRequest struct {
	// contains filtered or unexported fields
}

func (*CancelMissionDownloadRequest) Descriptor deprecated

func (*CancelMissionDownloadRequest) Descriptor() ([]byte, []int)

Deprecated: Use CancelMissionDownloadRequest.ProtoReflect.Descriptor instead.

func (*CancelMissionDownloadRequest) ProtoMessage

func (*CancelMissionDownloadRequest) ProtoMessage()

func (*CancelMissionDownloadRequest) ProtoReflect

func (*CancelMissionDownloadRequest) Reset

func (x *CancelMissionDownloadRequest) Reset()

func (*CancelMissionDownloadRequest) String

type CancelMissionDownloadResponse

type CancelMissionDownloadResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelMissionDownloadResponse) Descriptor deprecated

func (*CancelMissionDownloadResponse) Descriptor() ([]byte, []int)

Deprecated: Use CancelMissionDownloadResponse.ProtoReflect.Descriptor instead.

func (*CancelMissionDownloadResponse) GetMissionRawResult

func (x *CancelMissionDownloadResponse) GetMissionRawResult() *MissionRawResult

func (*CancelMissionDownloadResponse) ProtoMessage

func (*CancelMissionDownloadResponse) ProtoMessage()

func (*CancelMissionDownloadResponse) ProtoReflect

func (*CancelMissionDownloadResponse) Reset

func (x *CancelMissionDownloadResponse) Reset()

func (*CancelMissionDownloadResponse) String

type CancelMissionUploadRequest

type CancelMissionUploadRequest struct {
	// contains filtered or unexported fields
}

func (*CancelMissionUploadRequest) Descriptor deprecated

func (*CancelMissionUploadRequest) Descriptor() ([]byte, []int)

Deprecated: Use CancelMissionUploadRequest.ProtoReflect.Descriptor instead.

func (*CancelMissionUploadRequest) ProtoMessage

func (*CancelMissionUploadRequest) ProtoMessage()

func (*CancelMissionUploadRequest) ProtoReflect

func (*CancelMissionUploadRequest) Reset

func (x *CancelMissionUploadRequest) Reset()

func (*CancelMissionUploadRequest) String

func (x *CancelMissionUploadRequest) String() string

type CancelMissionUploadResponse

type CancelMissionUploadResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelMissionUploadResponse) Descriptor deprecated

func (*CancelMissionUploadResponse) Descriptor() ([]byte, []int)

Deprecated: Use CancelMissionUploadResponse.ProtoReflect.Descriptor instead.

func (*CancelMissionUploadResponse) GetMissionRawResult

func (x *CancelMissionUploadResponse) GetMissionRawResult() *MissionRawResult

func (*CancelMissionUploadResponse) ProtoMessage

func (*CancelMissionUploadResponse) ProtoMessage()

func (*CancelMissionUploadResponse) ProtoReflect

func (*CancelMissionUploadResponse) Reset

func (x *CancelMissionUploadResponse) Reset()

func (*CancelMissionUploadResponse) String

func (x *CancelMissionUploadResponse) String() string

type ClearMissionRequest

type ClearMissionRequest struct {
	// contains filtered or unexported fields
}

func (*ClearMissionRequest) Descriptor deprecated

func (*ClearMissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ClearMissionRequest.ProtoReflect.Descriptor instead.

func (*ClearMissionRequest) ProtoMessage

func (*ClearMissionRequest) ProtoMessage()

func (*ClearMissionRequest) ProtoReflect

func (x *ClearMissionRequest) ProtoReflect() protoreflect.Message

func (*ClearMissionRequest) Reset

func (x *ClearMissionRequest) Reset()

func (*ClearMissionRequest) String

func (x *ClearMissionRequest) String() string

type ClearMissionResponse

type ClearMissionResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearMissionResponse) Descriptor deprecated

func (*ClearMissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ClearMissionResponse.ProtoReflect.Descriptor instead.

func (*ClearMissionResponse) GetMissionRawResult

func (x *ClearMissionResponse) GetMissionRawResult() *MissionRawResult

func (*ClearMissionResponse) ProtoMessage

func (*ClearMissionResponse) ProtoMessage()

func (*ClearMissionResponse) ProtoReflect

func (x *ClearMissionResponse) ProtoReflect() protoreflect.Message

func (*ClearMissionResponse) Reset

func (x *ClearMissionResponse) Reset()

func (*ClearMissionResponse) String

func (x *ClearMissionResponse) String() string

type DownloadMissionRequest

type DownloadMissionRequest struct {
	// contains filtered or unexported fields
}

func (*DownloadMissionRequest) Descriptor deprecated

func (*DownloadMissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DownloadMissionRequest.ProtoReflect.Descriptor instead.

func (*DownloadMissionRequest) ProtoMessage

func (*DownloadMissionRequest) ProtoMessage()

func (*DownloadMissionRequest) ProtoReflect

func (x *DownloadMissionRequest) ProtoReflect() protoreflect.Message

func (*DownloadMissionRequest) Reset

func (x *DownloadMissionRequest) Reset()

func (*DownloadMissionRequest) String

func (x *DownloadMissionRequest) String() string

type DownloadMissionResponse

type DownloadMissionResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	MissionItems     []*MissionItem    `protobuf:"bytes,2,rep,name=mission_items,json=missionItems,proto3" json:"mission_items,omitempty"` // The mission items
	// contains filtered or unexported fields
}

func (*DownloadMissionResponse) Descriptor deprecated

func (*DownloadMissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DownloadMissionResponse.ProtoReflect.Descriptor instead.

func (*DownloadMissionResponse) GetMissionItems

func (x *DownloadMissionResponse) GetMissionItems() []*MissionItem

func (*DownloadMissionResponse) GetMissionRawResult

func (x *DownloadMissionResponse) GetMissionRawResult() *MissionRawResult

func (*DownloadMissionResponse) ProtoMessage

func (*DownloadMissionResponse) ProtoMessage()

func (*DownloadMissionResponse) ProtoReflect

func (x *DownloadMissionResponse) ProtoReflect() protoreflect.Message

func (*DownloadMissionResponse) Reset

func (x *DownloadMissionResponse) Reset()

func (*DownloadMissionResponse) String

func (x *DownloadMissionResponse) String() string

type ImportQgroundcontrolMissionRequest

type ImportQgroundcontrolMissionRequest struct {
	QgcPlanPath string `protobuf:"bytes,1,opt,name=qgc_plan_path,json=qgcPlanPath,proto3" json:"qgc_plan_path,omitempty"` // File path of the QGC plan
	// contains filtered or unexported fields
}

func (*ImportQgroundcontrolMissionRequest) Descriptor deprecated

func (*ImportQgroundcontrolMissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImportQgroundcontrolMissionRequest.ProtoReflect.Descriptor instead.

func (*ImportQgroundcontrolMissionRequest) GetQgcPlanPath

func (x *ImportQgroundcontrolMissionRequest) GetQgcPlanPath() string

func (*ImportQgroundcontrolMissionRequest) ProtoMessage

func (*ImportQgroundcontrolMissionRequest) ProtoMessage()

func (*ImportQgroundcontrolMissionRequest) ProtoReflect

func (*ImportQgroundcontrolMissionRequest) Reset

func (*ImportQgroundcontrolMissionRequest) String

type ImportQgroundcontrolMissionResponse

type ImportQgroundcontrolMissionResponse struct {
	MissionRawResult  *MissionRawResult  `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	MissionImportData *MissionImportData `protobuf:"bytes,2,opt,name=mission_import_data,json=missionImportData,proto3" json:"mission_import_data,omitempty"` // The imported mission data
	// contains filtered or unexported fields
}

func (*ImportQgroundcontrolMissionResponse) Descriptor deprecated

func (*ImportQgroundcontrolMissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImportQgroundcontrolMissionResponse.ProtoReflect.Descriptor instead.

func (*ImportQgroundcontrolMissionResponse) GetMissionImportData

func (x *ImportQgroundcontrolMissionResponse) GetMissionImportData() *MissionImportData

func (*ImportQgroundcontrolMissionResponse) GetMissionRawResult

func (x *ImportQgroundcontrolMissionResponse) GetMissionRawResult() *MissionRawResult

func (*ImportQgroundcontrolMissionResponse) ProtoMessage

func (*ImportQgroundcontrolMissionResponse) ProtoMessage()

func (*ImportQgroundcontrolMissionResponse) ProtoReflect

func (*ImportQgroundcontrolMissionResponse) Reset

func (*ImportQgroundcontrolMissionResponse) String

type MissionChangedResponse

type MissionChangedResponse struct {
	MissionChanged bool `protobuf:"varint,1,opt,name=mission_changed,json=missionChanged,proto3" json:"mission_changed,omitempty"` // Mission has changed
	// contains filtered or unexported fields
}

func (*MissionChangedResponse) Descriptor deprecated

func (*MissionChangedResponse) Descriptor() ([]byte, []int)

Deprecated: Use MissionChangedResponse.ProtoReflect.Descriptor instead.

func (*MissionChangedResponse) GetMissionChanged

func (x *MissionChangedResponse) GetMissionChanged() bool

func (*MissionChangedResponse) ProtoMessage

func (*MissionChangedResponse) ProtoMessage()

func (*MissionChangedResponse) ProtoReflect

func (x *MissionChangedResponse) ProtoReflect() protoreflect.Message

func (*MissionChangedResponse) Reset

func (x *MissionChangedResponse) Reset()

func (*MissionChangedResponse) String

func (x *MissionChangedResponse) String() string

type MissionImportData

type MissionImportData struct {
	MissionItems  []*MissionItem `protobuf:"bytes,1,rep,name=mission_items,json=missionItems,proto3" json:"mission_items,omitempty"`    // Mission items
	GeofenceItems []*MissionItem `protobuf:"bytes,2,rep,name=geofence_items,json=geofenceItems,proto3" json:"geofence_items,omitempty"` // Geofence items
	RallyItems    []*MissionItem `protobuf:"bytes,3,rep,name=rally_items,json=rallyItems,proto3" json:"rally_items,omitempty"`          // Rally items
	// contains filtered or unexported fields
}

Mission import data

func (*MissionImportData) Descriptor deprecated

func (*MissionImportData) Descriptor() ([]byte, []int)

Deprecated: Use MissionImportData.ProtoReflect.Descriptor instead.

func (*MissionImportData) GetGeofenceItems

func (x *MissionImportData) GetGeofenceItems() []*MissionItem

func (*MissionImportData) GetMissionItems

func (x *MissionImportData) GetMissionItems() []*MissionItem

func (*MissionImportData) GetRallyItems

func (x *MissionImportData) GetRallyItems() []*MissionItem

func (*MissionImportData) ProtoMessage

func (*MissionImportData) ProtoMessage()

func (*MissionImportData) ProtoReflect

func (x *MissionImportData) ProtoReflect() protoreflect.Message

func (*MissionImportData) Reset

func (x *MissionImportData) Reset()

func (*MissionImportData) String

func (x *MissionImportData) String() string

type MissionItem

type MissionItem struct {
	Seq          uint32  `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`                                     // Sequence (uint16_t)
	Frame        uint32  `protobuf:"varint,2,opt,name=frame,proto3" json:"frame,omitempty"`                                 // The coordinate system of the waypoint (actually uint8_t)
	Command      uint32  `protobuf:"varint,3,opt,name=command,proto3" json:"command,omitempty"`                             // The scheduled action for the waypoint (actually uint16_t)
	Current      uint32  `protobuf:"varint,4,opt,name=current,proto3" json:"current,omitempty"`                             // false:0, true:1 (actually uint8_t)
	Autocontinue uint32  `protobuf:"varint,5,opt,name=autocontinue,proto3" json:"autocontinue,omitempty"`                   // Autocontinue to next waypoint (actually uint8_t)
	Param1       float32 `protobuf:"fixed32,6,opt,name=param1,proto3" json:"param1,omitempty"`                              // PARAM1, see MAV_CMD enum
	Param2       float32 `protobuf:"fixed32,7,opt,name=param2,proto3" json:"param2,omitempty"`                              // PARAM2, see MAV_CMD enum
	Param3       float32 `protobuf:"fixed32,8,opt,name=param3,proto3" json:"param3,omitempty"`                              // PARAM3, see MAV_CMD enum
	Param4       float32 `protobuf:"fixed32,9,opt,name=param4,proto3" json:"param4,omitempty"`                              // PARAM4, see MAV_CMD enum
	X            int32   `protobuf:"varint,10,opt,name=x,proto3" json:"x,omitempty"`                                        // PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7
	Y            int32   `protobuf:"varint,11,opt,name=y,proto3" json:"y,omitempty"`                                        // PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7
	Z            float32 `protobuf:"fixed32,12,opt,name=z,proto3" json:"z,omitempty"`                                       // PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame)
	MissionType  uint32  `protobuf:"varint,13,opt,name=mission_type,json=missionType,proto3" json:"mission_type,omitempty"` // Mission type (actually uint8_t)
	// contains filtered or unexported fields
}

Mission item exactly identical to MAVLink MISSION_ITEM_INT.

func (*MissionItem) Descriptor deprecated

func (*MissionItem) Descriptor() ([]byte, []int)

Deprecated: Use MissionItem.ProtoReflect.Descriptor instead.

func (*MissionItem) GetAutocontinue

func (x *MissionItem) GetAutocontinue() uint32

func (*MissionItem) GetCommand

func (x *MissionItem) GetCommand() uint32

func (*MissionItem) GetCurrent

func (x *MissionItem) GetCurrent() uint32

func (*MissionItem) GetFrame

func (x *MissionItem) GetFrame() uint32

func (*MissionItem) GetMissionType

func (x *MissionItem) GetMissionType() uint32

func (*MissionItem) GetParam1

func (x *MissionItem) GetParam1() float32

func (*MissionItem) GetParam2

func (x *MissionItem) GetParam2() float32

func (*MissionItem) GetParam3

func (x *MissionItem) GetParam3() float32

func (*MissionItem) GetParam4

func (x *MissionItem) GetParam4() float32

func (*MissionItem) GetSeq

func (x *MissionItem) GetSeq() uint32

func (*MissionItem) GetX

func (x *MissionItem) GetX() int32

func (*MissionItem) GetY

func (x *MissionItem) GetY() int32

func (*MissionItem) GetZ

func (x *MissionItem) GetZ() float32

func (*MissionItem) ProtoMessage

func (*MissionItem) ProtoMessage()

func (*MissionItem) ProtoReflect

func (x *MissionItem) ProtoReflect() protoreflect.Message

func (*MissionItem) Reset

func (x *MissionItem) Reset()

func (*MissionItem) String

func (x *MissionItem) String() string

type MissionProgress

type MissionProgress struct {
	Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` // Current mission item index (0-based), if equal to total, the mission is finished
	Total   int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`     // Total number of mission items
	// contains filtered or unexported fields
}

Mission progress type.

func (*MissionProgress) Descriptor deprecated

func (*MissionProgress) Descriptor() ([]byte, []int)

Deprecated: Use MissionProgress.ProtoReflect.Descriptor instead.

func (*MissionProgress) GetCurrent

func (x *MissionProgress) GetCurrent() int32

func (*MissionProgress) GetTotal

func (x *MissionProgress) GetTotal() int32

func (*MissionProgress) ProtoMessage

func (*MissionProgress) ProtoMessage()

func (*MissionProgress) ProtoReflect

func (x *MissionProgress) ProtoReflect() protoreflect.Message

func (*MissionProgress) Reset

func (x *MissionProgress) Reset()

func (*MissionProgress) String

func (x *MissionProgress) String() string

type MissionProgressResponse

type MissionProgressResponse struct {
	MissionProgress *MissionProgress `protobuf:"bytes,1,opt,name=mission_progress,json=missionProgress,proto3" json:"mission_progress,omitempty"` // Mission progress
	// contains filtered or unexported fields
}

func (*MissionProgressResponse) Descriptor deprecated

func (*MissionProgressResponse) Descriptor() ([]byte, []int)

Deprecated: Use MissionProgressResponse.ProtoReflect.Descriptor instead.

func (*MissionProgressResponse) GetMissionProgress

func (x *MissionProgressResponse) GetMissionProgress() *MissionProgress

func (*MissionProgressResponse) ProtoMessage

func (*MissionProgressResponse) ProtoMessage()

func (*MissionProgressResponse) ProtoReflect

func (x *MissionProgressResponse) ProtoReflect() protoreflect.Message

func (*MissionProgressResponse) Reset

func (x *MissionProgressResponse) Reset()

func (*MissionProgressResponse) String

func (x *MissionProgressResponse) String() string

type MissionRawResult

type MissionRawResult struct {
	Result    MissionRawResult_Result `protobuf:"varint,1,opt,name=result,proto3,enum=mavsdk.rpc.mission_raw.MissionRawResult_Result" json:"result,omitempty"` // Result enum value
	ResultStr string                  `protobuf:"bytes,2,opt,name=result_str,json=resultStr,proto3" json:"result_str,omitempty"`                               // Human-readable English string describing the result
	// contains filtered or unexported fields
}

Result type.

func (*MissionRawResult) Descriptor deprecated

func (*MissionRawResult) Descriptor() ([]byte, []int)

Deprecated: Use MissionRawResult.ProtoReflect.Descriptor instead.

func (*MissionRawResult) GetResult

func (*MissionRawResult) GetResultStr

func (x *MissionRawResult) GetResultStr() string

func (*MissionRawResult) ProtoMessage

func (*MissionRawResult) ProtoMessage()

func (*MissionRawResult) ProtoReflect

func (x *MissionRawResult) ProtoReflect() protoreflect.Message

func (*MissionRawResult) Reset

func (x *MissionRawResult) Reset()

func (*MissionRawResult) String

func (x *MissionRawResult) String() string

type MissionRawResult_Result

type MissionRawResult_Result int32

Possible results returned for action requests.

const (
	MissionRawResult_RESULT_UNKNOWN                  MissionRawResult_Result = 0  // Unknown result
	MissionRawResult_RESULT_SUCCESS                  MissionRawResult_Result = 1  // Request succeeded
	MissionRawResult_RESULT_ERROR                    MissionRawResult_Result = 2  // Error
	MissionRawResult_RESULT_TOO_MANY_MISSION_ITEMS   MissionRawResult_Result = 3  // Too many mission items in the mission
	MissionRawResult_RESULT_BUSY                     MissionRawResult_Result = 4  // Vehicle is busy
	MissionRawResult_RESULT_TIMEOUT                  MissionRawResult_Result = 5  // Request timed out
	MissionRawResult_RESULT_INVALID_ARGUMENT         MissionRawResult_Result = 6  // Invalid argument
	MissionRawResult_RESULT_UNSUPPORTED              MissionRawResult_Result = 7  // Mission downloaded from the system is not supported
	MissionRawResult_RESULT_NO_MISSION_AVAILABLE     MissionRawResult_Result = 8  // No mission available on the system
	MissionRawResult_RESULT_TRANSFER_CANCELLED       MissionRawResult_Result = 9  // Mission transfer (upload or download) has been cancelled
	MissionRawResult_RESULT_FAILED_TO_OPEN_QGC_PLAN  MissionRawResult_Result = 10 // Failed to open the QGroundControl plan
	MissionRawResult_RESULT_FAILED_TO_PARSE_QGC_PLAN MissionRawResult_Result = 11 // Failed to parse the QGroundControl plan
	MissionRawResult_RESULT_NO_SYSTEM                MissionRawResult_Result = 12 // No system connected
)

func (MissionRawResult_Result) Descriptor

func (MissionRawResult_Result) Enum

func (MissionRawResult_Result) EnumDescriptor deprecated

func (MissionRawResult_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use MissionRawResult_Result.Descriptor instead.

func (MissionRawResult_Result) Number

func (MissionRawResult_Result) String

func (x MissionRawResult_Result) String() string

func (MissionRawResult_Result) Type

type MissionRawServiceClient

type MissionRawServiceClient interface {
	// Upload a list of raw mission items to the system.
	//
	// The raw mission items are uploaded to a drone. Once uploaded the mission
	// can be started and executed even if the connection is lost.
	UploadMission(ctx context.Context, in *UploadMissionRequest, opts ...grpc.CallOption) (*UploadMissionResponse, error)
	// Cancel an ongoing mission upload.
	CancelMissionUpload(ctx context.Context, in *CancelMissionUploadRequest, opts ...grpc.CallOption) (*CancelMissionUploadResponse, error)
	// Download a list of raw mission items from the system (asynchronous).
	DownloadMission(ctx context.Context, in *DownloadMissionRequest, opts ...grpc.CallOption) (*DownloadMissionResponse, error)
	// Cancel an ongoing mission download.
	CancelMissionDownload(ctx context.Context, in *CancelMissionDownloadRequest, opts ...grpc.CallOption) (*CancelMissionDownloadResponse, error)
	// Start the mission.
	//
	// A mission must be uploaded to the vehicle before this can be called.
	StartMission(ctx context.Context, in *StartMissionRequest, opts ...grpc.CallOption) (*StartMissionResponse, error)
	// Pause the mission.
	//
	// Pausing the mission puts the vehicle into
	// [HOLD mode](https://docs.px4.io/en/flight_modes/hold.html).
	// A multicopter should just hover at the spot while a fixedwing vehicle should loiter
	// around the location where it paused.
	PauseMission(ctx context.Context, in *PauseMissionRequest, opts ...grpc.CallOption) (*PauseMissionResponse, error)
	// Clear the mission saved on the vehicle.
	ClearMission(ctx context.Context, in *ClearMissionRequest, opts ...grpc.CallOption) (*ClearMissionResponse, error)
	// Sets the raw mission item index to go to.
	//
	// By setting the current index to 0, the mission is restarted from the beginning. If it is set
	// to a specific index of a raw mission item, the mission will be set to this item.
	SetCurrentMissionItem(ctx context.Context, in *SetCurrentMissionItemRequest, opts ...grpc.CallOption) (*SetCurrentMissionItemResponse, error)
	// Subscribe to mission progress updates.
	SubscribeMissionProgress(ctx context.Context, in *SubscribeMissionProgressRequest, opts ...grpc.CallOption) (MissionRawService_SubscribeMissionProgressClient, error)
	// *
	// Subscribes to mission changed.
	//
	// This notification can be used to be informed if a ground station has
	// been uploaded or changed by a ground station or companion computer.
	//
	// @param callback Callback to notify about change.
	SubscribeMissionChanged(ctx context.Context, in *SubscribeMissionChangedRequest, opts ...grpc.CallOption) (MissionRawService_SubscribeMissionChangedClient, error)
	// Import a QGroundControl missions in JSON .plan format.
	//
	// Supported:
	// - Waypoints
	// - Survey
	// Not supported:
	// - Structure Scan
	ImportQgroundcontrolMission(ctx context.Context, in *ImportQgroundcontrolMissionRequest, opts ...grpc.CallOption) (*ImportQgroundcontrolMissionResponse, error)
}

MissionRawServiceClient is the client API for MissionRawService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type MissionRawServiceServer

type MissionRawServiceServer interface {
	// Upload a list of raw mission items to the system.
	//
	// The raw mission items are uploaded to a drone. Once uploaded the mission
	// can be started and executed even if the connection is lost.
	UploadMission(context.Context, *UploadMissionRequest) (*UploadMissionResponse, error)
	// Cancel an ongoing mission upload.
	CancelMissionUpload(context.Context, *CancelMissionUploadRequest) (*CancelMissionUploadResponse, error)
	// Download a list of raw mission items from the system (asynchronous).
	DownloadMission(context.Context, *DownloadMissionRequest) (*DownloadMissionResponse, error)
	// Cancel an ongoing mission download.
	CancelMissionDownload(context.Context, *CancelMissionDownloadRequest) (*CancelMissionDownloadResponse, error)
	// Start the mission.
	//
	// A mission must be uploaded to the vehicle before this can be called.
	StartMission(context.Context, *StartMissionRequest) (*StartMissionResponse, error)
	// Pause the mission.
	//
	// Pausing the mission puts the vehicle into
	// [HOLD mode](https://docs.px4.io/en/flight_modes/hold.html).
	// A multicopter should just hover at the spot while a fixedwing vehicle should loiter
	// around the location where it paused.
	PauseMission(context.Context, *PauseMissionRequest) (*PauseMissionResponse, error)
	// Clear the mission saved on the vehicle.
	ClearMission(context.Context, *ClearMissionRequest) (*ClearMissionResponse, error)
	// Sets the raw mission item index to go to.
	//
	// By setting the current index to 0, the mission is restarted from the beginning. If it is set
	// to a specific index of a raw mission item, the mission will be set to this item.
	SetCurrentMissionItem(context.Context, *SetCurrentMissionItemRequest) (*SetCurrentMissionItemResponse, error)
	// Subscribe to mission progress updates.
	SubscribeMissionProgress(*SubscribeMissionProgressRequest, MissionRawService_SubscribeMissionProgressServer) error
	// *
	// Subscribes to mission changed.
	//
	// This notification can be used to be informed if a ground station has
	// been uploaded or changed by a ground station or companion computer.
	//
	// @param callback Callback to notify about change.
	SubscribeMissionChanged(*SubscribeMissionChangedRequest, MissionRawService_SubscribeMissionChangedServer) error
	// Import a QGroundControl missions in JSON .plan format.
	//
	// Supported:
	// - Waypoints
	// - Survey
	// Not supported:
	// - Structure Scan
	ImportQgroundcontrolMission(context.Context, *ImportQgroundcontrolMissionRequest) (*ImportQgroundcontrolMissionResponse, error)
	// contains filtered or unexported methods
}

MissionRawServiceServer is the server API for MissionRawService service. All implementations must embed UnimplementedMissionRawServiceServer for forward compatibility

type MissionRawService_SubscribeMissionChangedClient

type MissionRawService_SubscribeMissionChangedClient interface {
	Recv() (*MissionChangedResponse, error)
	grpc.ClientStream
}

type MissionRawService_SubscribeMissionChangedServer

type MissionRawService_SubscribeMissionChangedServer interface {
	Send(*MissionChangedResponse) error
	grpc.ServerStream
}

type MissionRawService_SubscribeMissionProgressClient

type MissionRawService_SubscribeMissionProgressClient interface {
	Recv() (*MissionProgressResponse, error)
	grpc.ClientStream
}

type MissionRawService_SubscribeMissionProgressServer

type MissionRawService_SubscribeMissionProgressServer interface {
	Send(*MissionProgressResponse) error
	grpc.ServerStream
}

type PauseMissionRequest

type PauseMissionRequest struct {
	// contains filtered or unexported fields
}

func (*PauseMissionRequest) Descriptor deprecated

func (*PauseMissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use PauseMissionRequest.ProtoReflect.Descriptor instead.

func (*PauseMissionRequest) ProtoMessage

func (*PauseMissionRequest) ProtoMessage()

func (*PauseMissionRequest) ProtoReflect

func (x *PauseMissionRequest) ProtoReflect() protoreflect.Message

func (*PauseMissionRequest) Reset

func (x *PauseMissionRequest) Reset()

func (*PauseMissionRequest) String

func (x *PauseMissionRequest) String() string

type PauseMissionResponse

type PauseMissionResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	// contains filtered or unexported fields
}

func (*PauseMissionResponse) Descriptor deprecated

func (*PauseMissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use PauseMissionResponse.ProtoReflect.Descriptor instead.

func (*PauseMissionResponse) GetMissionRawResult

func (x *PauseMissionResponse) GetMissionRawResult() *MissionRawResult

func (*PauseMissionResponse) ProtoMessage

func (*PauseMissionResponse) ProtoMessage()

func (*PauseMissionResponse) ProtoReflect

func (x *PauseMissionResponse) ProtoReflect() protoreflect.Message

func (*PauseMissionResponse) Reset

func (x *PauseMissionResponse) Reset()

func (*PauseMissionResponse) String

func (x *PauseMissionResponse) String() string

type ServiceImpl

type ServiceImpl struct {
	Client MissionRawServiceClient
}

func (*ServiceImpl) CancelMissionDownload

func (s *ServiceImpl) CancelMissionDownload(ctx context.Context) (*CancelMissionDownloadResponse, error)

func (*ServiceImpl) CancelMissionUpload

func (s *ServiceImpl) CancelMissionUpload(ctx context.Context) (*CancelMissionUploadResponse, error)

func (*ServiceImpl) ClearMission

func (s *ServiceImpl) ClearMission(ctx context.Context) (*ClearMissionResponse, error)

func (*ServiceImpl) DownloadMission

func (s *ServiceImpl) DownloadMission(ctx context.Context) (*DownloadMissionResponse, error)

func (*ServiceImpl) ImportQgroundcontrolMission

func (s *ServiceImpl) ImportQgroundcontrolMission(ctx context.Context, qgcPlanPath string) (*ImportQgroundcontrolMissionResponse, error)

func (*ServiceImpl) MissionChanged

func (a *ServiceImpl) MissionChanged(ctx context.Context) (<-chan bool, error)

func (*ServiceImpl) MissionProgress

func (a *ServiceImpl) MissionProgress(ctx context.Context) (<-chan *MissionProgress, error)

func (*ServiceImpl) PauseMission

func (s *ServiceImpl) PauseMission(ctx context.Context) (*PauseMissionResponse, error)

func (*ServiceImpl) SetCurrentMissionItem

func (s *ServiceImpl) SetCurrentMissionItem(ctx context.Context, index int32) (*SetCurrentMissionItemResponse, error)

func (*ServiceImpl) StartMission

func (s *ServiceImpl) StartMission(ctx context.Context) (*StartMissionResponse, error)

func (*ServiceImpl) UploadMission

func (s *ServiceImpl) UploadMission(ctx context.Context, missionItems []*MissionItem) (*UploadMissionResponse, error)

type SetCurrentMissionItemRequest

type SetCurrentMissionItemRequest struct {
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // Index of the mission item to be set as the next one (0-based)
	// contains filtered or unexported fields
}

func (*SetCurrentMissionItemRequest) Descriptor deprecated

func (*SetCurrentMissionItemRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetCurrentMissionItemRequest.ProtoReflect.Descriptor instead.

func (*SetCurrentMissionItemRequest) GetIndex

func (x *SetCurrentMissionItemRequest) GetIndex() int32

func (*SetCurrentMissionItemRequest) ProtoMessage

func (*SetCurrentMissionItemRequest) ProtoMessage()

func (*SetCurrentMissionItemRequest) ProtoReflect

func (*SetCurrentMissionItemRequest) Reset

func (x *SetCurrentMissionItemRequest) Reset()

func (*SetCurrentMissionItemRequest) String

type SetCurrentMissionItemResponse

type SetCurrentMissionItemResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCurrentMissionItemResponse) Descriptor deprecated

func (*SetCurrentMissionItemResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetCurrentMissionItemResponse.ProtoReflect.Descriptor instead.

func (*SetCurrentMissionItemResponse) GetMissionRawResult

func (x *SetCurrentMissionItemResponse) GetMissionRawResult() *MissionRawResult

func (*SetCurrentMissionItemResponse) ProtoMessage

func (*SetCurrentMissionItemResponse) ProtoMessage()

func (*SetCurrentMissionItemResponse) ProtoReflect

func (*SetCurrentMissionItemResponse) Reset

func (x *SetCurrentMissionItemResponse) Reset()

func (*SetCurrentMissionItemResponse) String

type StartMissionRequest

type StartMissionRequest struct {
	// contains filtered or unexported fields
}

func (*StartMissionRequest) Descriptor deprecated

func (*StartMissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartMissionRequest.ProtoReflect.Descriptor instead.

func (*StartMissionRequest) ProtoMessage

func (*StartMissionRequest) ProtoMessage()

func (*StartMissionRequest) ProtoReflect

func (x *StartMissionRequest) ProtoReflect() protoreflect.Message

func (*StartMissionRequest) Reset

func (x *StartMissionRequest) Reset()

func (*StartMissionRequest) String

func (x *StartMissionRequest) String() string

type StartMissionResponse

type StartMissionResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StartMissionResponse) Descriptor deprecated

func (*StartMissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartMissionResponse.ProtoReflect.Descriptor instead.

func (*StartMissionResponse) GetMissionRawResult

func (x *StartMissionResponse) GetMissionRawResult() *MissionRawResult

func (*StartMissionResponse) ProtoMessage

func (*StartMissionResponse) ProtoMessage()

func (*StartMissionResponse) ProtoReflect

func (x *StartMissionResponse) ProtoReflect() protoreflect.Message

func (*StartMissionResponse) Reset

func (x *StartMissionResponse) Reset()

func (*StartMissionResponse) String

func (x *StartMissionResponse) String() string

type SubscribeMissionChangedRequest

type SubscribeMissionChangedRequest struct {
	// contains filtered or unexported fields
}

func (*SubscribeMissionChangedRequest) Descriptor deprecated

func (*SubscribeMissionChangedRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeMissionChangedRequest.ProtoReflect.Descriptor instead.

func (*SubscribeMissionChangedRequest) ProtoMessage

func (*SubscribeMissionChangedRequest) ProtoMessage()

func (*SubscribeMissionChangedRequest) ProtoReflect

func (*SubscribeMissionChangedRequest) Reset

func (x *SubscribeMissionChangedRequest) Reset()

func (*SubscribeMissionChangedRequest) String

type SubscribeMissionProgressRequest

type SubscribeMissionProgressRequest struct {
	// contains filtered or unexported fields
}

func (*SubscribeMissionProgressRequest) Descriptor deprecated

func (*SubscribeMissionProgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeMissionProgressRequest.ProtoReflect.Descriptor instead.

func (*SubscribeMissionProgressRequest) ProtoMessage

func (*SubscribeMissionProgressRequest) ProtoMessage()

func (*SubscribeMissionProgressRequest) ProtoReflect

func (*SubscribeMissionProgressRequest) Reset

func (*SubscribeMissionProgressRequest) String

type UnimplementedMissionRawServiceServer

type UnimplementedMissionRawServiceServer struct {
}

UnimplementedMissionRawServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMissionRawServiceServer) CancelMissionUpload

func (UnimplementedMissionRawServiceServer) ClearMission

func (UnimplementedMissionRawServiceServer) DownloadMission

func (UnimplementedMissionRawServiceServer) PauseMission

func (UnimplementedMissionRawServiceServer) StartMission

func (UnimplementedMissionRawServiceServer) UploadMission

type UnsafeMissionRawServiceServer

type UnsafeMissionRawServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMissionRawServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MissionRawServiceServer will result in compilation errors.

type UploadMissionRequest

type UploadMissionRequest struct {
	MissionItems []*MissionItem `protobuf:"bytes,1,rep,name=mission_items,json=missionItems,proto3" json:"mission_items,omitempty"` // The mission items
	// contains filtered or unexported fields
}

func (*UploadMissionRequest) Descriptor deprecated

func (*UploadMissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UploadMissionRequest.ProtoReflect.Descriptor instead.

func (*UploadMissionRequest) GetMissionItems

func (x *UploadMissionRequest) GetMissionItems() []*MissionItem

func (*UploadMissionRequest) ProtoMessage

func (*UploadMissionRequest) ProtoMessage()

func (*UploadMissionRequest) ProtoReflect

func (x *UploadMissionRequest) ProtoReflect() protoreflect.Message

func (*UploadMissionRequest) Reset

func (x *UploadMissionRequest) Reset()

func (*UploadMissionRequest) String

func (x *UploadMissionRequest) String() string

type UploadMissionResponse

type UploadMissionResponse struct {
	MissionRawResult *MissionRawResult `protobuf:"bytes,1,opt,name=mission_raw_result,json=missionRawResult,proto3" json:"mission_raw_result,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadMissionResponse) Descriptor deprecated

func (*UploadMissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use UploadMissionResponse.ProtoReflect.Descriptor instead.

func (*UploadMissionResponse) GetMissionRawResult

func (x *UploadMissionResponse) GetMissionRawResult() *MissionRawResult

func (*UploadMissionResponse) ProtoMessage

func (*UploadMissionResponse) ProtoMessage()

func (*UploadMissionResponse) ProtoReflect

func (x *UploadMissionResponse) ProtoReflect() protoreflect.Message

func (*UploadMissionResponse) Reset

func (x *UploadMissionResponse) Reset()

func (*UploadMissionResponse) String

func (x *UploadMissionResponse) String() string

Jump to

Keyboard shortcuts

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