mission

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MissionService_UploadMission_FullMethodName                        = "/mavsdk.rpc.mission.MissionService/UploadMission"
	MissionService_SubscribeUploadMissionWithProgress_FullMethodName   = "/mavsdk.rpc.mission.MissionService/SubscribeUploadMissionWithProgress"
	MissionService_CancelMissionUpload_FullMethodName                  = "/mavsdk.rpc.mission.MissionService/CancelMissionUpload"
	MissionService_DownloadMission_FullMethodName                      = "/mavsdk.rpc.mission.MissionService/DownloadMission"
	MissionService_SubscribeDownloadMissionWithProgress_FullMethodName = "/mavsdk.rpc.mission.MissionService/SubscribeDownloadMissionWithProgress"
	MissionService_CancelMissionDownload_FullMethodName                = "/mavsdk.rpc.mission.MissionService/CancelMissionDownload"
	MissionService_StartMission_FullMethodName                         = "/mavsdk.rpc.mission.MissionService/StartMission"
	MissionService_PauseMission_FullMethodName                         = "/mavsdk.rpc.mission.MissionService/PauseMission"
	MissionService_ClearMission_FullMethodName                         = "/mavsdk.rpc.mission.MissionService/ClearMission"
	MissionService_SetCurrentMissionItem_FullMethodName                = "/mavsdk.rpc.mission.MissionService/SetCurrentMissionItem"
	MissionService_IsMissionFinished_FullMethodName                    = "/mavsdk.rpc.mission.MissionService/IsMissionFinished"
	MissionService_SubscribeMissionProgress_FullMethodName             = "/mavsdk.rpc.mission.MissionService/SubscribeMissionProgress"
	MissionService_GetReturnToLaunchAfterMission_FullMethodName        = "/mavsdk.rpc.mission.MissionService/GetReturnToLaunchAfterMission"
	MissionService_SetReturnToLaunchAfterMission_FullMethodName        = "/mavsdk.rpc.mission.MissionService/SetReturnToLaunchAfterMission"
)

Variables

View Source
var (
	MissionItem_CameraAction_name = map[int32]string{
		0: "CAMERA_ACTION_NONE",
		1: "CAMERA_ACTION_TAKE_PHOTO",
		2: "CAMERA_ACTION_START_PHOTO_INTERVAL",
		3: "CAMERA_ACTION_STOP_PHOTO_INTERVAL",
		4: "CAMERA_ACTION_START_VIDEO",
		5: "CAMERA_ACTION_STOP_VIDEO",
		6: "CAMERA_ACTION_START_PHOTO_DISTANCE",
		7: "CAMERA_ACTION_STOP_PHOTO_DISTANCE",
	}
	MissionItem_CameraAction_value = map[string]int32{
		"CAMERA_ACTION_NONE":                 0,
		"CAMERA_ACTION_TAKE_PHOTO":           1,
		"CAMERA_ACTION_START_PHOTO_INTERVAL": 2,
		"CAMERA_ACTION_STOP_PHOTO_INTERVAL":  3,
		"CAMERA_ACTION_START_VIDEO":          4,
		"CAMERA_ACTION_STOP_VIDEO":           5,
		"CAMERA_ACTION_START_PHOTO_DISTANCE": 6,
		"CAMERA_ACTION_STOP_PHOTO_DISTANCE":  7,
	}
)

Enum value maps for MissionItem_CameraAction.

View Source
var (
	MissionItem_VehicleAction_name = map[int32]string{
		0: "VEHICLE_ACTION_NONE",
		1: "VEHICLE_ACTION_TAKEOFF",
		2: "VEHICLE_ACTION_LAND",
		3: "VEHICLE_ACTION_TRANSITION_TO_FW",
		4: "VEHICLE_ACTION_TRANSITION_TO_MC",
	}
	MissionItem_VehicleAction_value = map[string]int32{
		"VEHICLE_ACTION_NONE":             0,
		"VEHICLE_ACTION_TAKEOFF":          1,
		"VEHICLE_ACTION_LAND":             2,
		"VEHICLE_ACTION_TRANSITION_TO_FW": 3,
		"VEHICLE_ACTION_TRANSITION_TO_MC": 4,
	}
)

Enum value maps for MissionItem_VehicleAction.

View Source
var (
	MissionResult_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",
		11: "RESULT_UNSUPPORTED_MISSION_CMD",
		12: "RESULT_TRANSFER_CANCELLED",
		13: "RESULT_NO_SYSTEM",
		14: "RESULT_NEXT",
		15: "RESULT_DENIED",
		16: "RESULT_PROTOCOL_ERROR",
		17: "RESULT_INT_MESSAGES_NOT_SUPPORTED",
	}
	MissionResult_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_UNSUPPORTED_MISSION_CMD":    11,
		"RESULT_TRANSFER_CANCELLED":         12,
		"RESULT_NO_SYSTEM":                  13,
		"RESULT_NEXT":                       14,
		"RESULT_DENIED":                     15,
		"RESULT_PROTOCOL_ERROR":             16,
		"RESULT_INT_MESSAGES_NOT_SUPPORTED": 17,
	}
)

Enum value maps for MissionResult_Result.

View Source
var File_mission_proto protoreflect.FileDescriptor
View Source
var MissionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mavsdk.rpc.mission.MissionService",
	HandlerType: (*MissionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UploadMission",
			Handler:    _MissionService_UploadMission_Handler,
		},
		{
			MethodName: "CancelMissionUpload",
			Handler:    _MissionService_CancelMissionUpload_Handler,
		},
		{
			MethodName: "DownloadMission",
			Handler:    _MissionService_DownloadMission_Handler,
		},
		{
			MethodName: "CancelMissionDownload",
			Handler:    _MissionService_CancelMissionDownload_Handler,
		},
		{
			MethodName: "StartMission",
			Handler:    _MissionService_StartMission_Handler,
		},
		{
			MethodName: "PauseMission",
			Handler:    _MissionService_PauseMission_Handler,
		},
		{
			MethodName: "ClearMission",
			Handler:    _MissionService_ClearMission_Handler,
		},
		{
			MethodName: "SetCurrentMissionItem",
			Handler:    _MissionService_SetCurrentMissionItem_Handler,
		},
		{
			MethodName: "IsMissionFinished",
			Handler:    _MissionService_IsMissionFinished_Handler,
		},
		{
			MethodName: "GetReturnToLaunchAfterMission",
			Handler:    _MissionService_GetReturnToLaunchAfterMission_Handler,
		},
		{
			MethodName: "SetReturnToLaunchAfterMission",
			Handler:    _MissionService_SetReturnToLaunchAfterMission_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeUploadMissionWithProgress",
			Handler:       _MissionService_SubscribeUploadMissionWithProgress_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeDownloadMissionWithProgress",
			Handler:       _MissionService_SubscribeDownloadMissionWithProgress_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeMissionProgress",
			Handler:       _MissionService_SubscribeMissionProgress_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "mission.proto",
}

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

Functions

func RegisterMissionServiceServer

func RegisterMissionServiceServer(s grpc.ServiceRegistrar, srv MissionServiceServer)

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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelMissionDownloadResponse) Descriptor deprecated

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

Deprecated: Use CancelMissionDownloadResponse.ProtoReflect.Descriptor instead.

func (*CancelMissionDownloadResponse) GetMissionResult

func (x *CancelMissionDownloadResponse) GetMissionResult() *MissionResult

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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelMissionUploadResponse) Descriptor deprecated

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

Deprecated: Use CancelMissionUploadResponse.ProtoReflect.Descriptor instead.

func (*CancelMissionUploadResponse) GetMissionResult

func (x *CancelMissionUploadResponse) GetMissionResult() *MissionResult

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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearMissionResponse) Descriptor deprecated

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

Deprecated: Use ClearMissionResponse.ProtoReflect.Descriptor instead.

func (*ClearMissionResponse) GetMissionResult

func (x *ClearMissionResponse) GetMissionResult() *MissionResult

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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	MissionPlan   *MissionPlan   `protobuf:"bytes,2,opt,name=mission_plan,json=missionPlan,proto3" json:"mission_plan,omitempty"` // The mission plan
	// contains filtered or unexported fields
}

func (*DownloadMissionResponse) Descriptor deprecated

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

Deprecated: Use DownloadMissionResponse.ProtoReflect.Descriptor instead.

func (*DownloadMissionResponse) GetMissionPlan

func (x *DownloadMissionResponse) GetMissionPlan() *MissionPlan

func (*DownloadMissionResponse) GetMissionResult

func (x *DownloadMissionResponse) GetMissionResult() *MissionResult

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 DownloadMissionWithProgressResponse added in v0.0.4

type DownloadMissionWithProgressResponse struct {
	MissionResult *MissionResult         `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	ProgressData  *ProgressDataOrMission `protobuf:"bytes,2,opt,name=progress_data,json=progressData,proto3" json:"progress_data,omitempty"` // The progress data, or the mission plan (when the download is finished)
	// contains filtered or unexported fields
}

func (*DownloadMissionWithProgressResponse) Descriptor deprecated added in v0.0.4

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

Deprecated: Use DownloadMissionWithProgressResponse.ProtoReflect.Descriptor instead.

func (*DownloadMissionWithProgressResponse) GetMissionResult added in v0.0.4

func (x *DownloadMissionWithProgressResponse) GetMissionResult() *MissionResult

func (*DownloadMissionWithProgressResponse) GetProgressData added in v0.0.4

func (*DownloadMissionWithProgressResponse) ProtoMessage added in v0.0.4

func (*DownloadMissionWithProgressResponse) ProtoMessage()

func (*DownloadMissionWithProgressResponse) ProtoReflect added in v0.0.4

func (*DownloadMissionWithProgressResponse) Reset added in v0.0.4

func (*DownloadMissionWithProgressResponse) String added in v0.0.4

type GetReturnToLaunchAfterMissionRequest

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

func (*GetReturnToLaunchAfterMissionRequest) Descriptor deprecated

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

Deprecated: Use GetReturnToLaunchAfterMissionRequest.ProtoReflect.Descriptor instead.

func (*GetReturnToLaunchAfterMissionRequest) ProtoMessage

func (*GetReturnToLaunchAfterMissionRequest) ProtoMessage()

func (*GetReturnToLaunchAfterMissionRequest) ProtoReflect

func (*GetReturnToLaunchAfterMissionRequest) Reset

func (*GetReturnToLaunchAfterMissionRequest) String

type GetReturnToLaunchAfterMissionResponse

type GetReturnToLaunchAfterMissionResponse struct {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	Enable        bool           `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` // If true, trigger an RTL at the end of the mission
	// contains filtered or unexported fields
}

func (*GetReturnToLaunchAfterMissionResponse) Descriptor deprecated

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

Deprecated: Use GetReturnToLaunchAfterMissionResponse.ProtoReflect.Descriptor instead.

func (*GetReturnToLaunchAfterMissionResponse) GetEnable

func (*GetReturnToLaunchAfterMissionResponse) GetMissionResult

func (*GetReturnToLaunchAfterMissionResponse) ProtoMessage

func (*GetReturnToLaunchAfterMissionResponse) ProtoMessage()

func (*GetReturnToLaunchAfterMissionResponse) ProtoReflect

func (*GetReturnToLaunchAfterMissionResponse) Reset

func (*GetReturnToLaunchAfterMissionResponse) String

type IsMissionFinishedRequest

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

func (*IsMissionFinishedRequest) Descriptor deprecated

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

Deprecated: Use IsMissionFinishedRequest.ProtoReflect.Descriptor instead.

func (*IsMissionFinishedRequest) ProtoMessage

func (*IsMissionFinishedRequest) ProtoMessage()

func (*IsMissionFinishedRequest) ProtoReflect

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

func (*IsMissionFinishedRequest) Reset

func (x *IsMissionFinishedRequest) Reset()

func (*IsMissionFinishedRequest) String

func (x *IsMissionFinishedRequest) String() string

type IsMissionFinishedResponse

type IsMissionFinishedResponse struct {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	IsFinished    bool           `protobuf:"varint,2,opt,name=is_finished,json=isFinished,proto3" json:"is_finished,omitempty"` // True if the mission is finished and the last mission item has been reached
	// contains filtered or unexported fields
}

func (*IsMissionFinishedResponse) Descriptor deprecated

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

Deprecated: Use IsMissionFinishedResponse.ProtoReflect.Descriptor instead.

func (*IsMissionFinishedResponse) GetIsFinished

func (x *IsMissionFinishedResponse) GetIsFinished() bool

func (*IsMissionFinishedResponse) GetMissionResult

func (x *IsMissionFinishedResponse) GetMissionResult() *MissionResult

func (*IsMissionFinishedResponse) ProtoMessage

func (*IsMissionFinishedResponse) ProtoMessage()

func (*IsMissionFinishedResponse) ProtoReflect

func (*IsMissionFinishedResponse) Reset

func (x *IsMissionFinishedResponse) Reset()

func (*IsMissionFinishedResponse) String

func (x *IsMissionFinishedResponse) String() string

type MissionItem

type MissionItem struct {
	LatitudeDeg       float64                  `protobuf:"fixed64,1,opt,name=latitude_deg,json=latitudeDeg,proto3" json:"latitude_deg,omitempty"`                     // Latitude in degrees (range: -90 to +90)
	LongitudeDeg      float64                  `protobuf:"fixed64,2,opt,name=longitude_deg,json=longitudeDeg,proto3" json:"longitude_deg,omitempty"`                  // Longitude in degrees (range: -180 to +180)
	RelativeAltitudeM float32                  `protobuf:"fixed32,3,opt,name=relative_altitude_m,json=relativeAltitudeM,proto3" json:"relative_altitude_m,omitempty"` // Altitude relative to takeoff altitude in metres
	SpeedMS           float32                  `protobuf:"fixed32,4,opt,name=speed_m_s,json=speedMS,proto3" json:"speed_m_s,omitempty"`                               // Speed to use after this mission item (in metres/second)
	IsFlyThrough      bool                     `protobuf:"varint,5,opt,name=is_fly_through,json=isFlyThrough,proto3" json:"is_fly_through,omitempty"`                 // True will make the drone fly through without stopping, while false will make the drone stop on the waypoint
	GimbalPitchDeg    float32                  `protobuf:"fixed32,6,opt,name=gimbal_pitch_deg,json=gimbalPitchDeg,proto3" json:"gimbal_pitch_deg,omitempty"`          // Gimbal pitch (in degrees)
	GimbalYawDeg      float32                  `protobuf:"fixed32,7,opt,name=gimbal_yaw_deg,json=gimbalYawDeg,proto3" json:"gimbal_yaw_deg,omitempty"`                // Gimbal yaw (in degrees)
	CameraAction      MissionItem_CameraAction ``                                                                                                                     // Camera action to trigger at this mission item
	/* 147-byte string literal not displayed */
	LoiterTimeS          float32 `protobuf:"fixed32,9,opt,name=loiter_time_s,json=loiterTimeS,proto3" json:"loiter_time_s,omitempty"` // Loiter time (in seconds)
	CameraPhotoIntervalS float64 ``                                                                                                   // Camera photo interval to use after this mission item (in seconds)
	/* 128-byte string literal not displayed */
	AcceptanceRadiusM    float32 `protobuf:"fixed32,11,opt,name=acceptance_radius_m,json=acceptanceRadiusM,proto3" json:"acceptance_radius_m,omitempty"` // Radius for completing a mission item (in metres)
	YawDeg               float32 `protobuf:"fixed32,12,opt,name=yaw_deg,json=yawDeg,proto3" json:"yaw_deg,omitempty"`                                    // Absolute yaw angle (in degrees)
	CameraPhotoDistanceM float32 ``                                                                                                                      // Camera photo distance to use after this mission item (in meters)
	/* 128-byte string literal not displayed */
	VehicleAction MissionItem_VehicleAction `` // Vehicle action to trigger at this mission item.
	/* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

Type representing a mission item.

A MissionItem can contain a position and/or actions. Mission items are building blocks to assemble a mission, which can be sent to (or received from) a system. They cannot be used independently.

func (*MissionItem) Descriptor deprecated

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

Deprecated: Use MissionItem.ProtoReflect.Descriptor instead.

func (*MissionItem) GetAcceptanceRadiusM added in v0.0.4

func (x *MissionItem) GetAcceptanceRadiusM() float32

func (*MissionItem) GetCameraAction

func (x *MissionItem) GetCameraAction() MissionItem_CameraAction

func (*MissionItem) GetCameraPhotoDistanceM added in v0.0.4

func (x *MissionItem) GetCameraPhotoDistanceM() float32

func (*MissionItem) GetCameraPhotoIntervalS

func (x *MissionItem) GetCameraPhotoIntervalS() float64

func (*MissionItem) GetGimbalPitchDeg

func (x *MissionItem) GetGimbalPitchDeg() float32

func (*MissionItem) GetGimbalYawDeg

func (x *MissionItem) GetGimbalYawDeg() float32

func (*MissionItem) GetIsFlyThrough

func (x *MissionItem) GetIsFlyThrough() bool

func (*MissionItem) GetLatitudeDeg

func (x *MissionItem) GetLatitudeDeg() float64

func (*MissionItem) GetLoiterTimeS

func (x *MissionItem) GetLoiterTimeS() float32

func (*MissionItem) GetLongitudeDeg

func (x *MissionItem) GetLongitudeDeg() float64

func (*MissionItem) GetRelativeAltitudeM

func (x *MissionItem) GetRelativeAltitudeM() float32

func (*MissionItem) GetSpeedMS

func (x *MissionItem) GetSpeedMS() float32

func (*MissionItem) GetVehicleAction added in v0.0.6

func (x *MissionItem) GetVehicleAction() MissionItem_VehicleAction

func (*MissionItem) GetYawDeg added in v0.0.4

func (x *MissionItem) GetYawDeg() 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 MissionItem_CameraAction

type MissionItem_CameraAction int32

Possible camera actions at a mission item.

const (
	MissionItem_CAMERA_ACTION_NONE                 MissionItem_CameraAction = 0 // No action
	MissionItem_CAMERA_ACTION_TAKE_PHOTO           MissionItem_CameraAction = 1 // Take a single photo
	MissionItem_CAMERA_ACTION_START_PHOTO_INTERVAL MissionItem_CameraAction = 2 // Start capturing photos at regular intervals
	MissionItem_CAMERA_ACTION_STOP_PHOTO_INTERVAL  MissionItem_CameraAction = 3 // Stop capturing photos at regular intervals
	MissionItem_CAMERA_ACTION_START_VIDEO          MissionItem_CameraAction = 4 // Start capturing video
	MissionItem_CAMERA_ACTION_STOP_VIDEO           MissionItem_CameraAction = 5 // Stop capturing video
	MissionItem_CAMERA_ACTION_START_PHOTO_DISTANCE MissionItem_CameraAction = 6 // Start capturing photos at regular distance
	MissionItem_CAMERA_ACTION_STOP_PHOTO_DISTANCE  MissionItem_CameraAction = 7 // Stop capturing photos at regular distance
)

func (MissionItem_CameraAction) Descriptor

func (MissionItem_CameraAction) Enum

func (MissionItem_CameraAction) EnumDescriptor deprecated

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

Deprecated: Use MissionItem_CameraAction.Descriptor instead.

func (MissionItem_CameraAction) Number

func (MissionItem_CameraAction) String

func (x MissionItem_CameraAction) String() string

func (MissionItem_CameraAction) Type

type MissionItem_VehicleAction added in v0.0.6

type MissionItem_VehicleAction int32

Possible vehicle actions at a mission item

const (
	MissionItem_VEHICLE_ACTION_NONE             MissionItem_VehicleAction = 0 // No action
	MissionItem_VEHICLE_ACTION_TAKEOFF          MissionItem_VehicleAction = 1 // Vehicle will takeoff and go to defined waypoint
	MissionItem_VEHICLE_ACTION_LAND             MissionItem_VehicleAction = 2 // When a waypoint is reached vehicle will land at current position
	MissionItem_VEHICLE_ACTION_TRANSITION_TO_FW MissionItem_VehicleAction = 3 // When a waypoint is reached vehicle will transition to fixed-wing mode
	MissionItem_VEHICLE_ACTION_TRANSITION_TO_MC MissionItem_VehicleAction = 4 // When a waypoint is reached vehicle will transition to multi-copter mode
)

func (MissionItem_VehicleAction) Descriptor added in v0.0.6

func (MissionItem_VehicleAction) Enum added in v0.0.6

func (MissionItem_VehicleAction) EnumDescriptor deprecated added in v0.0.6

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

Deprecated: Use MissionItem_VehicleAction.Descriptor instead.

func (MissionItem_VehicleAction) Number added in v0.0.6

func (MissionItem_VehicleAction) String added in v0.0.6

func (x MissionItem_VehicleAction) String() string

func (MissionItem_VehicleAction) Type added in v0.0.6

type MissionPlan

type MissionPlan 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
}

Mission plan type

func (*MissionPlan) Descriptor deprecated

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

Deprecated: Use MissionPlan.ProtoReflect.Descriptor instead.

func (*MissionPlan) GetMissionItems

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

func (*MissionPlan) ProtoMessage

func (*MissionPlan) ProtoMessage()

func (*MissionPlan) ProtoReflect

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

func (*MissionPlan) Reset

func (x *MissionPlan) Reset()

func (*MissionPlan) String

func (x *MissionPlan) 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 MissionResult

type MissionResult struct {
	Result    MissionResult_Result `protobuf:"varint,1,opt,name=result,proto3,enum=mavsdk.rpc.mission.MissionResult_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 (*MissionResult) Descriptor deprecated

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

Deprecated: Use MissionResult.ProtoReflect.Descriptor instead.

func (*MissionResult) GetResult

func (x *MissionResult) GetResult() MissionResult_Result

func (*MissionResult) GetResultStr

func (x *MissionResult) GetResultStr() string

func (*MissionResult) ProtoMessage

func (*MissionResult) ProtoMessage()

func (*MissionResult) ProtoReflect

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

func (*MissionResult) Reset

func (x *MissionResult) Reset()

func (*MissionResult) String

func (x *MissionResult) String() string

type MissionResult_Result

type MissionResult_Result int32

Possible results returned for action requests.

const (
	MissionResult_RESULT_UNKNOWN                    MissionResult_Result = 0  // Unknown result
	MissionResult_RESULT_SUCCESS                    MissionResult_Result = 1  // Request succeeded
	MissionResult_RESULT_ERROR                      MissionResult_Result = 2  // Error
	MissionResult_RESULT_TOO_MANY_MISSION_ITEMS     MissionResult_Result = 3  // Too many mission items in the mission
	MissionResult_RESULT_BUSY                       MissionResult_Result = 4  // Vehicle is busy
	MissionResult_RESULT_TIMEOUT                    MissionResult_Result = 5  // Request timed out
	MissionResult_RESULT_INVALID_ARGUMENT           MissionResult_Result = 6  // Invalid argument
	MissionResult_RESULT_UNSUPPORTED                MissionResult_Result = 7  // Mission downloaded from the system is not supported
	MissionResult_RESULT_NO_MISSION_AVAILABLE       MissionResult_Result = 8  // No mission available on the system
	MissionResult_RESULT_UNSUPPORTED_MISSION_CMD    MissionResult_Result = 11 // Unsupported mission command
	MissionResult_RESULT_TRANSFER_CANCELLED         MissionResult_Result = 12 // Mission transfer (upload or download) has been cancelled
	MissionResult_RESULT_NO_SYSTEM                  MissionResult_Result = 13 // No system connected
	MissionResult_RESULT_NEXT                       MissionResult_Result = 14 // Intermediate message showing progress
	MissionResult_RESULT_DENIED                     MissionResult_Result = 15 // Request denied
	MissionResult_RESULT_PROTOCOL_ERROR             MissionResult_Result = 16 // There was a protocol error
	MissionResult_RESULT_INT_MESSAGES_NOT_SUPPORTED MissionResult_Result = 17 // The system does not support the MISSION_INT protocol
)

func (MissionResult_Result) Descriptor

func (MissionResult_Result) Enum

func (MissionResult_Result) EnumDescriptor deprecated

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

Deprecated: Use MissionResult_Result.Descriptor instead.

func (MissionResult_Result) Number

func (MissionResult_Result) String

func (x MissionResult_Result) String() string

func (MissionResult_Result) Type

type MissionServiceClient

type MissionServiceClient interface {
	// Upload a list of mission items to the system.
	//
	// The 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)
	// Upload a list of mission items to the system and report upload progress.
	//
	// The mission items are uploaded to a drone. Once uploaded the mission can be started and
	// executed even if the connection is lost.
	SubscribeUploadMissionWithProgress(ctx context.Context, in *SubscribeUploadMissionWithProgressRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[UploadMissionWithProgressResponse], error)
	// Cancel an ongoing mission upload.
	CancelMissionUpload(ctx context.Context, in *CancelMissionUploadRequest, opts ...grpc.CallOption) (*CancelMissionUploadResponse, error)
	// Download a list of mission items from the system (asynchronous).
	//
	// Will fail if any of the downloaded mission items are not supported
	// by the MAVSDK API.
	DownloadMission(ctx context.Context, in *DownloadMissionRequest, opts ...grpc.CallOption) (*DownloadMissionResponse, error)
	// Download a list of mission items from the system (asynchronous) and report progress.
	//
	// Will fail if any of the downloaded mission items are not supported
	// by the MAVSDK API.
	SubscribeDownloadMissionWithProgress(ctx context.Context, in *SubscribeDownloadMissionWithProgressRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DownloadMissionWithProgressResponse], 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 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 mission item, the mission will be set to this item.
	//
	// Note that this is not necessarily true for general missions using MAVLink if loop counters
	// are used.
	SetCurrentMissionItem(ctx context.Context, in *SetCurrentMissionItemRequest, opts ...grpc.CallOption) (*SetCurrentMissionItemResponse, error)
	// Check if the mission has been finished.
	IsMissionFinished(ctx context.Context, in *IsMissionFinishedRequest, opts ...grpc.CallOption) (*IsMissionFinishedResponse, error)
	// Subscribe to mission progress updates.
	SubscribeMissionProgress(ctx context.Context, in *SubscribeMissionProgressRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[MissionProgressResponse], error)
	// Get whether to trigger Return-to-Launch (RTL) after mission is complete.
	//
	// Before getting this option, it needs to be set, or a mission
	// needs to be downloaded.
	GetReturnToLaunchAfterMission(ctx context.Context, in *GetReturnToLaunchAfterMissionRequest, opts ...grpc.CallOption) (*GetReturnToLaunchAfterMissionResponse, error)
	// Set whether to trigger Return-to-Launch (RTL) after the mission is complete.
	//
	// This will only take effect for the next mission upload, meaning that
	// the mission may have to be uploaded again.
	SetReturnToLaunchAfterMission(ctx context.Context, in *SetReturnToLaunchAfterMissionRequest, opts ...grpc.CallOption) (*SetReturnToLaunchAfterMissionResponse, error)
}

MissionServiceClient is the client API for MissionService 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.

Enable waypoint missions.

type MissionServiceServer

type MissionServiceServer interface {
	// Upload a list of mission items to the system.
	//
	// The 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)
	// Upload a list of mission items to the system and report upload progress.
	//
	// The mission items are uploaded to a drone. Once uploaded the mission can be started and
	// executed even if the connection is lost.
	SubscribeUploadMissionWithProgress(*SubscribeUploadMissionWithProgressRequest, grpc.ServerStreamingServer[UploadMissionWithProgressResponse]) error
	// Cancel an ongoing mission upload.
	CancelMissionUpload(context.Context, *CancelMissionUploadRequest) (*CancelMissionUploadResponse, error)
	// Download a list of mission items from the system (asynchronous).
	//
	// Will fail if any of the downloaded mission items are not supported
	// by the MAVSDK API.
	DownloadMission(context.Context, *DownloadMissionRequest) (*DownloadMissionResponse, error)
	// Download a list of mission items from the system (asynchronous) and report progress.
	//
	// Will fail if any of the downloaded mission items are not supported
	// by the MAVSDK API.
	SubscribeDownloadMissionWithProgress(*SubscribeDownloadMissionWithProgressRequest, grpc.ServerStreamingServer[DownloadMissionWithProgressResponse]) 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 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 mission item, the mission will be set to this item.
	//
	// Note that this is not necessarily true for general missions using MAVLink if loop counters
	// are used.
	SetCurrentMissionItem(context.Context, *SetCurrentMissionItemRequest) (*SetCurrentMissionItemResponse, error)
	// Check if the mission has been finished.
	IsMissionFinished(context.Context, *IsMissionFinishedRequest) (*IsMissionFinishedResponse, error)
	// Subscribe to mission progress updates.
	SubscribeMissionProgress(*SubscribeMissionProgressRequest, grpc.ServerStreamingServer[MissionProgressResponse]) error
	// Get whether to trigger Return-to-Launch (RTL) after mission is complete.
	//
	// Before getting this option, it needs to be set, or a mission
	// needs to be downloaded.
	GetReturnToLaunchAfterMission(context.Context, *GetReturnToLaunchAfterMissionRequest) (*GetReturnToLaunchAfterMissionResponse, error)
	// Set whether to trigger Return-to-Launch (RTL) after the mission is complete.
	//
	// This will only take effect for the next mission upload, meaning that
	// the mission may have to be uploaded again.
	SetReturnToLaunchAfterMission(context.Context, *SetReturnToLaunchAfterMissionRequest) (*SetReturnToLaunchAfterMissionResponse, error)
	// contains filtered or unexported methods
}

MissionServiceServer is the server API for MissionService service. All implementations must embed UnimplementedMissionServiceServer for forward compatibility.

Enable waypoint missions.

type MissionService_SubscribeDownloadMissionWithProgressClient added in v0.0.4

type MissionService_SubscribeDownloadMissionWithProgressClient = grpc.ServerStreamingClient[DownloadMissionWithProgressResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MissionService_SubscribeDownloadMissionWithProgressServer added in v0.0.4

type MissionService_SubscribeDownloadMissionWithProgressServer = grpc.ServerStreamingServer[DownloadMissionWithProgressResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MissionService_SubscribeMissionProgressClient

type MissionService_SubscribeMissionProgressClient = grpc.ServerStreamingClient[MissionProgressResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MissionService_SubscribeMissionProgressServer

type MissionService_SubscribeMissionProgressServer = grpc.ServerStreamingServer[MissionProgressResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MissionService_SubscribeUploadMissionWithProgressClient added in v0.0.4

type MissionService_SubscribeUploadMissionWithProgressClient = grpc.ServerStreamingClient[UploadMissionWithProgressResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MissionService_SubscribeUploadMissionWithProgressServer added in v0.0.4

type MissionService_SubscribeUploadMissionWithProgressServer = grpc.ServerStreamingServer[UploadMissionWithProgressResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*PauseMissionResponse) Descriptor deprecated

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

Deprecated: Use PauseMissionResponse.ProtoReflect.Descriptor instead.

func (*PauseMissionResponse) GetMissionResult

func (x *PauseMissionResponse) GetMissionResult() *MissionResult

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 ProgressData added in v0.0.4

type ProgressData struct {
	Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` // Progress (0..1.0)
	// contains filtered or unexported fields
}

Progress data coming from mission upload.

func (*ProgressData) Descriptor deprecated added in v0.0.4

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

Deprecated: Use ProgressData.ProtoReflect.Descriptor instead.

func (*ProgressData) GetProgress added in v0.0.4

func (x *ProgressData) GetProgress() float32

func (*ProgressData) ProtoMessage added in v0.0.4

func (*ProgressData) ProtoMessage()

func (*ProgressData) ProtoReflect added in v0.0.4

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

func (*ProgressData) Reset added in v0.0.4

func (x *ProgressData) Reset()

func (*ProgressData) String added in v0.0.4

func (x *ProgressData) String() string

type ProgressDataOrMission added in v0.0.4

type ProgressDataOrMission struct {
	HasProgress bool         `protobuf:"varint,1,opt,name=has_progress,json=hasProgress,proto3" json:"has_progress,omitempty"` // Whether this ProgressData contains a 'progress' status or not
	Progress    float32      `protobuf:"fixed32,2,opt,name=progress,proto3" json:"progress,omitempty"`                         // Progress (0..1.0)
	HasMission  bool         `protobuf:"varint,3,opt,name=has_mission,json=hasMission,proto3" json:"has_mission,omitempty"`    // Whether this ProgressData contains a 'mission_plan' or not
	MissionPlan *MissionPlan `protobuf:"bytes,4,opt,name=mission_plan,json=missionPlan,proto3" json:"mission_plan,omitempty"`  // Mission plan
	// contains filtered or unexported fields
}

Progress data coming from mission download, or the mission itself (if the transfer succeeds).

func (*ProgressDataOrMission) Descriptor deprecated added in v0.0.4

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

Deprecated: Use ProgressDataOrMission.ProtoReflect.Descriptor instead.

func (*ProgressDataOrMission) GetHasMission added in v0.0.4

func (x *ProgressDataOrMission) GetHasMission() bool

func (*ProgressDataOrMission) GetHasProgress added in v0.0.4

func (x *ProgressDataOrMission) GetHasProgress() bool

func (*ProgressDataOrMission) GetMissionPlan added in v0.0.4

func (x *ProgressDataOrMission) GetMissionPlan() *MissionPlan

func (*ProgressDataOrMission) GetProgress added in v0.0.4

func (x *ProgressDataOrMission) GetProgress() float32

func (*ProgressDataOrMission) ProtoMessage added in v0.0.4

func (*ProgressDataOrMission) ProtoMessage()

func (*ProgressDataOrMission) ProtoReflect added in v0.0.4

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

func (*ProgressDataOrMission) Reset added in v0.0.4

func (x *ProgressDataOrMission) Reset()

func (*ProgressDataOrMission) String added in v0.0.4

func (x *ProgressDataOrMission) String() string

type ServiceImpl

type ServiceImpl struct {
	Client MissionServiceClient
}

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) DownloadMissionWithProgress added in v0.0.4

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

func (*ServiceImpl) GetReturnToLaunchAfterMission

func (s *ServiceImpl) GetReturnToLaunchAfterMission(ctx context.Context) (*GetReturnToLaunchAfterMissionResponse, error)

func (*ServiceImpl) IsMissionFinished

func (s *ServiceImpl) IsMissionFinished(ctx context.Context) (*IsMissionFinishedResponse, 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) SetReturnToLaunchAfterMission

func (s *ServiceImpl) SetReturnToLaunchAfterMission(ctx context.Context, enable bool) (*SetReturnToLaunchAfterMissionResponse, error)

func (*ServiceImpl) StartMission

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

func (*ServiceImpl) UploadMission

func (s *ServiceImpl) UploadMission(ctx context.Context, missionPlan *MissionPlan) (*UploadMissionResponse, error)

func (*ServiceImpl) UploadMissionWithProgress added in v0.0.4

func (a *ServiceImpl) UploadMissionWithProgress(ctx context.Context, missionPlan *MissionPlan) (<-chan *ProgressData, 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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCurrentMissionItemResponse) Descriptor deprecated

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

Deprecated: Use SetCurrentMissionItemResponse.ProtoReflect.Descriptor instead.

func (*SetCurrentMissionItemResponse) GetMissionResult

func (x *SetCurrentMissionItemResponse) GetMissionResult() *MissionResult

func (*SetCurrentMissionItemResponse) ProtoMessage

func (*SetCurrentMissionItemResponse) ProtoMessage()

func (*SetCurrentMissionItemResponse) ProtoReflect

func (*SetCurrentMissionItemResponse) Reset

func (x *SetCurrentMissionItemResponse) Reset()

func (*SetCurrentMissionItemResponse) String

type SetReturnToLaunchAfterMissionRequest

type SetReturnToLaunchAfterMissionRequest struct {
	Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` // If true, trigger an RTL at the end of the mission
	// contains filtered or unexported fields
}

func (*SetReturnToLaunchAfterMissionRequest) Descriptor deprecated

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

Deprecated: Use SetReturnToLaunchAfterMissionRequest.ProtoReflect.Descriptor instead.

func (*SetReturnToLaunchAfterMissionRequest) GetEnable

func (*SetReturnToLaunchAfterMissionRequest) ProtoMessage

func (*SetReturnToLaunchAfterMissionRequest) ProtoMessage()

func (*SetReturnToLaunchAfterMissionRequest) ProtoReflect

func (*SetReturnToLaunchAfterMissionRequest) Reset

func (*SetReturnToLaunchAfterMissionRequest) String

type SetReturnToLaunchAfterMissionResponse

type SetReturnToLaunchAfterMissionResponse struct {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetReturnToLaunchAfterMissionResponse) Descriptor deprecated

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

Deprecated: Use SetReturnToLaunchAfterMissionResponse.ProtoReflect.Descriptor instead.

func (*SetReturnToLaunchAfterMissionResponse) GetMissionResult

func (*SetReturnToLaunchAfterMissionResponse) ProtoMessage

func (*SetReturnToLaunchAfterMissionResponse) ProtoMessage()

func (*SetReturnToLaunchAfterMissionResponse) ProtoReflect

func (*SetReturnToLaunchAfterMissionResponse) Reset

func (*SetReturnToLaunchAfterMissionResponse) 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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StartMissionResponse) Descriptor deprecated

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

Deprecated: Use StartMissionResponse.ProtoReflect.Descriptor instead.

func (*StartMissionResponse) GetMissionResult

func (x *StartMissionResponse) GetMissionResult() *MissionResult

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 SubscribeDownloadMissionWithProgressRequest added in v0.0.4

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

func (*SubscribeDownloadMissionWithProgressRequest) Descriptor deprecated added in v0.0.4

Deprecated: Use SubscribeDownloadMissionWithProgressRequest.ProtoReflect.Descriptor instead.

func (*SubscribeDownloadMissionWithProgressRequest) ProtoMessage added in v0.0.4

func (*SubscribeDownloadMissionWithProgressRequest) ProtoReflect added in v0.0.4

func (*SubscribeDownloadMissionWithProgressRequest) Reset added in v0.0.4

func (*SubscribeDownloadMissionWithProgressRequest) String added in v0.0.4

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 SubscribeUploadMissionWithProgressRequest added in v0.0.4

type SubscribeUploadMissionWithProgressRequest struct {
	MissionPlan *MissionPlan `protobuf:"bytes,1,opt,name=mission_plan,json=missionPlan,proto3" json:"mission_plan,omitempty"` // The mission plan
	// contains filtered or unexported fields
}

func (*SubscribeUploadMissionWithProgressRequest) Descriptor deprecated added in v0.0.4

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

Deprecated: Use SubscribeUploadMissionWithProgressRequest.ProtoReflect.Descriptor instead.

func (*SubscribeUploadMissionWithProgressRequest) GetMissionPlan added in v0.0.4

func (*SubscribeUploadMissionWithProgressRequest) ProtoMessage added in v0.0.4

func (*SubscribeUploadMissionWithProgressRequest) ProtoReflect added in v0.0.4

func (*SubscribeUploadMissionWithProgressRequest) Reset added in v0.0.4

func (*SubscribeUploadMissionWithProgressRequest) String added in v0.0.4

type UnimplementedMissionServiceServer

type UnimplementedMissionServiceServer struct{}

UnimplementedMissionServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMissionServiceServer) CancelMissionUpload

func (UnimplementedMissionServiceServer) ClearMission

func (UnimplementedMissionServiceServer) DownloadMission

func (UnimplementedMissionServiceServer) IsMissionFinished

func (UnimplementedMissionServiceServer) PauseMission

func (UnimplementedMissionServiceServer) StartMission

func (UnimplementedMissionServiceServer) UploadMission

type UnsafeMissionServiceServer added in v0.0.4

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

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

type UploadMissionRequest

type UploadMissionRequest struct {
	MissionPlan *MissionPlan `protobuf:"bytes,1,opt,name=mission_plan,json=missionPlan,proto3" json:"mission_plan,omitempty"` // The mission plan
	// contains filtered or unexported fields
}

func (*UploadMissionRequest) Descriptor deprecated

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

Deprecated: Use UploadMissionRequest.ProtoReflect.Descriptor instead.

func (*UploadMissionRequest) GetMissionPlan

func (x *UploadMissionRequest) GetMissionPlan() *MissionPlan

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 {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadMissionResponse) Descriptor deprecated

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

Deprecated: Use UploadMissionResponse.ProtoReflect.Descriptor instead.

func (*UploadMissionResponse) GetMissionResult

func (x *UploadMissionResponse) GetMissionResult() *MissionResult

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

type UploadMissionWithProgressResponse added in v0.0.4

type UploadMissionWithProgressResponse struct {
	MissionResult *MissionResult `protobuf:"bytes,1,opt,name=mission_result,json=missionResult,proto3" json:"mission_result,omitempty"`
	ProgressData  *ProgressData  `protobuf:"bytes,2,opt,name=progress_data,json=progressData,proto3" json:"progress_data,omitempty"` // The progress data
	// contains filtered or unexported fields
}

func (*UploadMissionWithProgressResponse) Descriptor deprecated added in v0.0.4

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

Deprecated: Use UploadMissionWithProgressResponse.ProtoReflect.Descriptor instead.

func (*UploadMissionWithProgressResponse) GetMissionResult added in v0.0.4

func (x *UploadMissionWithProgressResponse) GetMissionResult() *MissionResult

func (*UploadMissionWithProgressResponse) GetProgressData added in v0.0.4

func (x *UploadMissionWithProgressResponse) GetProgressData() *ProgressData

func (*UploadMissionWithProgressResponse) ProtoMessage added in v0.0.4

func (*UploadMissionWithProgressResponse) ProtoMessage()

func (*UploadMissionWithProgressResponse) ProtoReflect added in v0.0.4

func (*UploadMissionWithProgressResponse) Reset added in v0.0.4

func (*UploadMissionWithProgressResponse) String added in v0.0.4

Jump to

Keyboard shortcuts

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