camera

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 (
	Mode_name = map[int32]string{
		0: "MODE_UNKNOWN",
		1: "MODE_PHOTO",
		2: "MODE_VIDEO",
	}
	Mode_value = map[string]int32{
		"MODE_UNKNOWN": 0,
		"MODE_PHOTO":   1,
		"MODE_VIDEO":   2,
	}
)

Enum value maps for Mode.

View Source
var (
	PhotosRange_name = map[int32]string{
		0: "PHOTOS_RANGE_ALL",
		1: "PHOTOS_RANGE_SINCE_CONNECTION",
	}
	PhotosRange_value = map[string]int32{
		"PHOTOS_RANGE_ALL":              0,
		"PHOTOS_RANGE_SINCE_CONNECTION": 1,
	}
)

Enum value maps for PhotosRange.

View Source
var (
	CameraResult_Result_name = map[int32]string{
		0: "RESULT_UNKNOWN",
		1: "RESULT_SUCCESS",
		2: "RESULT_IN_PROGRESS",
		3: "RESULT_BUSY",
		4: "RESULT_DENIED",
		5: "RESULT_ERROR",
		6: "RESULT_TIMEOUT",
		7: "RESULT_WRONG_ARGUMENT",
		8: "RESULT_NO_SYSTEM",
	}
	CameraResult_Result_value = map[string]int32{
		"RESULT_UNKNOWN":        0,
		"RESULT_SUCCESS":        1,
		"RESULT_IN_PROGRESS":    2,
		"RESULT_BUSY":           3,
		"RESULT_DENIED":         4,
		"RESULT_ERROR":          5,
		"RESULT_TIMEOUT":        6,
		"RESULT_WRONG_ARGUMENT": 7,
		"RESULT_NO_SYSTEM":      8,
	}
)

Enum value maps for CameraResult_Result.

View Source
var (
	VideoStreamInfo_VideoStreamStatus_name = map[int32]string{
		0: "VIDEO_STREAM_STATUS_NOT_RUNNING",
		1: "VIDEO_STREAM_STATUS_IN_PROGRESS",
	}
	VideoStreamInfo_VideoStreamStatus_value = map[string]int32{
		"VIDEO_STREAM_STATUS_NOT_RUNNING": 0,
		"VIDEO_STREAM_STATUS_IN_PROGRESS": 1,
	}
)

Enum value maps for VideoStreamInfo_VideoStreamStatus.

View Source
var (
	VideoStreamInfo_VideoStreamSpectrum_name = map[int32]string{
		0: "VIDEO_STREAM_SPECTRUM_UNKNOWN",
		1: "VIDEO_STREAM_SPECTRUM_VISIBLE_LIGHT",
		2: "VIDEO_STREAM_SPECTRUM_INFRARED",
	}
	VideoStreamInfo_VideoStreamSpectrum_value = map[string]int32{
		"VIDEO_STREAM_SPECTRUM_UNKNOWN":       0,
		"VIDEO_STREAM_SPECTRUM_VISIBLE_LIGHT": 1,
		"VIDEO_STREAM_SPECTRUM_INFRARED":      2,
	}
)

Enum value maps for VideoStreamInfo_VideoStreamSpectrum.

View Source
var (
	Status_StorageStatus_name = map[int32]string{
		0: "STORAGE_STATUS_NOT_AVAILABLE",
		1: "STORAGE_STATUS_UNFORMATTED",
		2: "STORAGE_STATUS_FORMATTED",
		3: "STORAGE_STATUS_NOT_SUPPORTED",
	}
	Status_StorageStatus_value = map[string]int32{
		"STORAGE_STATUS_NOT_AVAILABLE": 0,
		"STORAGE_STATUS_UNFORMATTED":   1,
		"STORAGE_STATUS_FORMATTED":     2,
		"STORAGE_STATUS_NOT_SUPPORTED": 3,
	}
)

Enum value maps for Status_StorageStatus.

View Source
var (
	Status_StorageType_name = map[int32]string{
		0:   "STORAGE_TYPE_UNKNOWN",
		1:   "STORAGE_TYPE_USB_STICK",
		2:   "STORAGE_TYPE_SD",
		3:   "STORAGE_TYPE_MICROSD",
		7:   "STORAGE_TYPE_HD",
		254: "STORAGE_TYPE_OTHER",
	}
	Status_StorageType_value = map[string]int32{
		"STORAGE_TYPE_UNKNOWN":   0,
		"STORAGE_TYPE_USB_STICK": 1,
		"STORAGE_TYPE_SD":        2,
		"STORAGE_TYPE_MICROSD":   3,
		"STORAGE_TYPE_HD":        7,
		"STORAGE_TYPE_OTHER":     254,
	}
)

Enum value maps for Status_StorageType.

View Source
var CameraService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mavsdk.rpc.camera.CameraService",
	HandlerType: (*CameraServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Prepare",
			Handler:    _CameraService_Prepare_Handler,
		},
		{
			MethodName: "TakePhoto",
			Handler:    _CameraService_TakePhoto_Handler,
		},
		{
			MethodName: "StartPhotoInterval",
			Handler:    _CameraService_StartPhotoInterval_Handler,
		},
		{
			MethodName: "StopPhotoInterval",
			Handler:    _CameraService_StopPhotoInterval_Handler,
		},
		{
			MethodName: "StartVideo",
			Handler:    _CameraService_StartVideo_Handler,
		},
		{
			MethodName: "StopVideo",
			Handler:    _CameraService_StopVideo_Handler,
		},
		{
			MethodName: "StartVideoStreaming",
			Handler:    _CameraService_StartVideoStreaming_Handler,
		},
		{
			MethodName: "StopVideoStreaming",
			Handler:    _CameraService_StopVideoStreaming_Handler,
		},
		{
			MethodName: "SetMode",
			Handler:    _CameraService_SetMode_Handler,
		},
		{
			MethodName: "ListPhotos",
			Handler:    _CameraService_ListPhotos_Handler,
		},
		{
			MethodName: "SetSetting",
			Handler:    _CameraService_SetSetting_Handler,
		},
		{
			MethodName: "GetSetting",
			Handler:    _CameraService_GetSetting_Handler,
		},
		{
			MethodName: "FormatStorage",
			Handler:    _CameraService_FormatStorage_Handler,
		},
		{
			MethodName: "SelectCamera",
			Handler:    _CameraService_SelectCamera_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeMode",
			Handler:       _CameraService_SubscribeMode_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeInformation",
			Handler:       _CameraService_SubscribeInformation_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeVideoStreamInfo",
			Handler:       _CameraService_SubscribeVideoStreamInfo_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeCaptureInfo",
			Handler:       _CameraService_SubscribeCaptureInfo_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeStatus",
			Handler:       _CameraService_SubscribeStatus_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeCurrentSettings",
			Handler:       _CameraService_SubscribeCurrentSettings_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribePossibleSettingOptions",
			Handler:       _CameraService_SubscribePossibleSettingOptions_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "camera.proto",
}

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

View Source
var File_camera_proto protoreflect.FileDescriptor

Functions

func RegisterCameraServiceServer

func RegisterCameraServiceServer(s grpc.ServiceRegistrar, srv CameraServiceServer)

Types

type CameraResult

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

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

Deprecated: Use CameraResult.ProtoReflect.Descriptor instead.

func (*CameraResult) GetResult

func (x *CameraResult) GetResult() CameraResult_Result

func (*CameraResult) GetResultStr

func (x *CameraResult) GetResultStr() string

func (*CameraResult) ProtoMessage

func (*CameraResult) ProtoMessage()

func (*CameraResult) ProtoReflect

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

func (*CameraResult) Reset

func (x *CameraResult) Reset()

func (*CameraResult) String

func (x *CameraResult) String() string

type CameraResult_Result

type CameraResult_Result int32

Possible results returned for camera commands

const (
	CameraResult_RESULT_UNKNOWN        CameraResult_Result = 0 // Unknown result
	CameraResult_RESULT_SUCCESS        CameraResult_Result = 1 // Command executed successfully
	CameraResult_RESULT_IN_PROGRESS    CameraResult_Result = 2 // Command in progress
	CameraResult_RESULT_BUSY           CameraResult_Result = 3 // Camera is busy and rejected command
	CameraResult_RESULT_DENIED         CameraResult_Result = 4 // Camera denied the command
	CameraResult_RESULT_ERROR          CameraResult_Result = 5 // An error has occurred while executing the command
	CameraResult_RESULT_TIMEOUT        CameraResult_Result = 6 // Command timed out
	CameraResult_RESULT_WRONG_ARGUMENT CameraResult_Result = 7 // Command has wrong argument(s)
	CameraResult_RESULT_NO_SYSTEM      CameraResult_Result = 8 // No system connected
)

func (CameraResult_Result) Descriptor

func (CameraResult_Result) Enum

func (CameraResult_Result) EnumDescriptor deprecated

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

Deprecated: Use CameraResult_Result.Descriptor instead.

func (CameraResult_Result) Number

func (CameraResult_Result) String

func (x CameraResult_Result) String() string

func (CameraResult_Result) Type

type CameraServiceClient

type CameraServiceClient interface {
	// Prepare the camera plugin (e.g. download the camera definition, etc).
	Prepare(ctx context.Context, in *PrepareRequest, opts ...grpc.CallOption) (*PrepareResponse, error)
	// Take one photo.
	TakePhoto(ctx context.Context, in *TakePhotoRequest, opts ...grpc.CallOption) (*TakePhotoResponse, error)
	// Start photo timelapse with a given interval.
	StartPhotoInterval(ctx context.Context, in *StartPhotoIntervalRequest, opts ...grpc.CallOption) (*StartPhotoIntervalResponse, error)
	// Stop a running photo timelapse.
	StopPhotoInterval(ctx context.Context, in *StopPhotoIntervalRequest, opts ...grpc.CallOption) (*StopPhotoIntervalResponse, error)
	// Start a video recording.
	StartVideo(ctx context.Context, in *StartVideoRequest, opts ...grpc.CallOption) (*StartVideoResponse, error)
	// Stop a running video recording.
	StopVideo(ctx context.Context, in *StopVideoRequest, opts ...grpc.CallOption) (*StopVideoResponse, error)
	// Start video streaming.
	StartVideoStreaming(ctx context.Context, in *StartVideoStreamingRequest, opts ...grpc.CallOption) (*StartVideoStreamingResponse, error)
	// Stop current video streaming.
	StopVideoStreaming(ctx context.Context, in *StopVideoStreamingRequest, opts ...grpc.CallOption) (*StopVideoStreamingResponse, error)
	// Set camera mode.
	SetMode(ctx context.Context, in *SetModeRequest, opts ...grpc.CallOption) (*SetModeResponse, error)
	// List photos available on the camera.
	ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error)
	// Subscribe to camera mode updates.
	SubscribeMode(ctx context.Context, in *SubscribeModeRequest, opts ...grpc.CallOption) (CameraService_SubscribeModeClient, error)
	// Subscribe to camera information updates.
	SubscribeInformation(ctx context.Context, in *SubscribeInformationRequest, opts ...grpc.CallOption) (CameraService_SubscribeInformationClient, error)
	// Subscribe to video stream info updates.
	SubscribeVideoStreamInfo(ctx context.Context, in *SubscribeVideoStreamInfoRequest, opts ...grpc.CallOption) (CameraService_SubscribeVideoStreamInfoClient, error)
	// Subscribe to capture info updates.
	SubscribeCaptureInfo(ctx context.Context, in *SubscribeCaptureInfoRequest, opts ...grpc.CallOption) (CameraService_SubscribeCaptureInfoClient, error)
	// Subscribe to camera status updates.
	SubscribeStatus(ctx context.Context, in *SubscribeStatusRequest, opts ...grpc.CallOption) (CameraService_SubscribeStatusClient, error)
	// Get the list of current camera settings.
	SubscribeCurrentSettings(ctx context.Context, in *SubscribeCurrentSettingsRequest, opts ...grpc.CallOption) (CameraService_SubscribeCurrentSettingsClient, error)
	// Get the list of settings that can be changed.
	SubscribePossibleSettingOptions(ctx context.Context, in *SubscribePossibleSettingOptionsRequest, opts ...grpc.CallOption) (CameraService_SubscribePossibleSettingOptionsClient, error)
	// Set a setting to some value.
	//
	// Only setting_id of setting and option_id of option needs to be set.
	SetSetting(ctx context.Context, in *SetSettingRequest, opts ...grpc.CallOption) (*SetSettingResponse, error)
	// Get a setting.
	//
	// Only setting_id of setting needs to be set.
	GetSetting(ctx context.Context, in *GetSettingRequest, opts ...grpc.CallOption) (*GetSettingResponse, error)
	// Format storage (e.g. SD card) in camera.
	//
	// This will delete all content of the camera storage!
	FormatStorage(ctx context.Context, in *FormatStorageRequest, opts ...grpc.CallOption) (*FormatStorageResponse, error)
	// Select current camera .
	//
	// Bind the plugin instance to a specific camera_id
	SelectCamera(ctx context.Context, in *SelectCameraRequest, opts ...grpc.CallOption) (*SelectCameraResponse, error)
}

CameraServiceClient is the client API for CameraService 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 CameraServiceServer

type CameraServiceServer interface {
	// Prepare the camera plugin (e.g. download the camera definition, etc).
	Prepare(context.Context, *PrepareRequest) (*PrepareResponse, error)
	// Take one photo.
	TakePhoto(context.Context, *TakePhotoRequest) (*TakePhotoResponse, error)
	// Start photo timelapse with a given interval.
	StartPhotoInterval(context.Context, *StartPhotoIntervalRequest) (*StartPhotoIntervalResponse, error)
	// Stop a running photo timelapse.
	StopPhotoInterval(context.Context, *StopPhotoIntervalRequest) (*StopPhotoIntervalResponse, error)
	// Start a video recording.
	StartVideo(context.Context, *StartVideoRequest) (*StartVideoResponse, error)
	// Stop a running video recording.
	StopVideo(context.Context, *StopVideoRequest) (*StopVideoResponse, error)
	// Start video streaming.
	StartVideoStreaming(context.Context, *StartVideoStreamingRequest) (*StartVideoStreamingResponse, error)
	// Stop current video streaming.
	StopVideoStreaming(context.Context, *StopVideoStreamingRequest) (*StopVideoStreamingResponse, error)
	// Set camera mode.
	SetMode(context.Context, *SetModeRequest) (*SetModeResponse, error)
	// List photos available on the camera.
	ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error)
	// Subscribe to camera mode updates.
	SubscribeMode(*SubscribeModeRequest, CameraService_SubscribeModeServer) error
	// Subscribe to camera information updates.
	SubscribeInformation(*SubscribeInformationRequest, CameraService_SubscribeInformationServer) error
	// Subscribe to video stream info updates.
	SubscribeVideoStreamInfo(*SubscribeVideoStreamInfoRequest, CameraService_SubscribeVideoStreamInfoServer) error
	// Subscribe to capture info updates.
	SubscribeCaptureInfo(*SubscribeCaptureInfoRequest, CameraService_SubscribeCaptureInfoServer) error
	// Subscribe to camera status updates.
	SubscribeStatus(*SubscribeStatusRequest, CameraService_SubscribeStatusServer) error
	// Get the list of current camera settings.
	SubscribeCurrentSettings(*SubscribeCurrentSettingsRequest, CameraService_SubscribeCurrentSettingsServer) error
	// Get the list of settings that can be changed.
	SubscribePossibleSettingOptions(*SubscribePossibleSettingOptionsRequest, CameraService_SubscribePossibleSettingOptionsServer) error
	// Set a setting to some value.
	//
	// Only setting_id of setting and option_id of option needs to be set.
	SetSetting(context.Context, *SetSettingRequest) (*SetSettingResponse, error)
	// Get a setting.
	//
	// Only setting_id of setting needs to be set.
	GetSetting(context.Context, *GetSettingRequest) (*GetSettingResponse, error)
	// Format storage (e.g. SD card) in camera.
	//
	// This will delete all content of the camera storage!
	FormatStorage(context.Context, *FormatStorageRequest) (*FormatStorageResponse, error)
	// Select current camera .
	//
	// Bind the plugin instance to a specific camera_id
	SelectCamera(context.Context, *SelectCameraRequest) (*SelectCameraResponse, error)
	// contains filtered or unexported methods
}

CameraServiceServer is the server API for CameraService service. All implementations must embed UnimplementedCameraServiceServer for forward compatibility

type CameraService_SubscribeCaptureInfoClient

type CameraService_SubscribeCaptureInfoClient interface {
	Recv() (*CaptureInfoResponse, error)
	grpc.ClientStream
}

type CameraService_SubscribeCaptureInfoServer

type CameraService_SubscribeCaptureInfoServer interface {
	Send(*CaptureInfoResponse) error
	grpc.ServerStream
}

type CameraService_SubscribeCurrentSettingsClient

type CameraService_SubscribeCurrentSettingsClient interface {
	Recv() (*CurrentSettingsResponse, error)
	grpc.ClientStream
}

type CameraService_SubscribeCurrentSettingsServer

type CameraService_SubscribeCurrentSettingsServer interface {
	Send(*CurrentSettingsResponse) error
	grpc.ServerStream
}

type CameraService_SubscribeInformationClient

type CameraService_SubscribeInformationClient interface {
	Recv() (*InformationResponse, error)
	grpc.ClientStream
}

type CameraService_SubscribeInformationServer

type CameraService_SubscribeInformationServer interface {
	Send(*InformationResponse) error
	grpc.ServerStream
}

type CameraService_SubscribeModeClient

type CameraService_SubscribeModeClient interface {
	Recv() (*ModeResponse, error)
	grpc.ClientStream
}

type CameraService_SubscribeModeServer

type CameraService_SubscribeModeServer interface {
	Send(*ModeResponse) error
	grpc.ServerStream
}

type CameraService_SubscribePossibleSettingOptionsClient

type CameraService_SubscribePossibleSettingOptionsClient interface {
	Recv() (*PossibleSettingOptionsResponse, error)
	grpc.ClientStream
}

type CameraService_SubscribePossibleSettingOptionsServer

type CameraService_SubscribePossibleSettingOptionsServer interface {
	Send(*PossibleSettingOptionsResponse) error
	grpc.ServerStream
}

type CameraService_SubscribeStatusClient

type CameraService_SubscribeStatusClient interface {
	Recv() (*StatusResponse, error)
	grpc.ClientStream
}

type CameraService_SubscribeStatusServer

type CameraService_SubscribeStatusServer interface {
	Send(*StatusResponse) error
	grpc.ServerStream
}

type CameraService_SubscribeVideoStreamInfoClient

type CameraService_SubscribeVideoStreamInfoClient interface {
	Recv() (*VideoStreamInfoResponse, error)
	grpc.ClientStream
}

type CameraService_SubscribeVideoStreamInfoServer

type CameraService_SubscribeVideoStreamInfoServer interface {
	Send(*VideoStreamInfoResponse) error
	grpc.ServerStream
}

type CaptureInfo

type CaptureInfo struct {
	Position           *Position   `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`                                                 // Location where the picture was taken
	AttitudeQuaternion *Quaternion `protobuf:"bytes,2,opt,name=attitude_quaternion,json=attitudeQuaternion,proto3" json:"attitude_quaternion,omitempty"`   // Attitude of the camera when the picture was taken (quaternion)
	AttitudeEulerAngle *EulerAngle `protobuf:"bytes,3,opt,name=attitude_euler_angle,json=attitudeEulerAngle,proto3" json:"attitude_euler_angle,omitempty"` // Attitude of the camera when the picture was taken (euler angle)
	TimeUtcUs          uint64      `protobuf:"varint,4,opt,name=time_utc_us,json=timeUtcUs,proto3" json:"time_utc_us,omitempty"`                           // Timestamp in UTC (since UNIX epoch) in microseconds
	IsSuccess          bool        `protobuf:"varint,5,opt,name=is_success,json=isSuccess,proto3" json:"is_success,omitempty"`                             // True if the capture was successful
	Index              int32       `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`                                                      // Zero-based index of this image since vehicle was armed
	FileUrl            string      `protobuf:"bytes,7,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"`                                    // Download URL of this image
	// contains filtered or unexported fields
}

Information about a picture just captured.

func (*CaptureInfo) Descriptor deprecated

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

Deprecated: Use CaptureInfo.ProtoReflect.Descriptor instead.

func (*CaptureInfo) GetAttitudeEulerAngle

func (x *CaptureInfo) GetAttitudeEulerAngle() *EulerAngle

func (*CaptureInfo) GetAttitudeQuaternion

func (x *CaptureInfo) GetAttitudeQuaternion() *Quaternion

func (*CaptureInfo) GetFileUrl

func (x *CaptureInfo) GetFileUrl() string

func (*CaptureInfo) GetIndex

func (x *CaptureInfo) GetIndex() int32

func (*CaptureInfo) GetIsSuccess

func (x *CaptureInfo) GetIsSuccess() bool

func (*CaptureInfo) GetPosition

func (x *CaptureInfo) GetPosition() *Position

func (*CaptureInfo) GetTimeUtcUs

func (x *CaptureInfo) GetTimeUtcUs() uint64

func (*CaptureInfo) ProtoMessage

func (*CaptureInfo) ProtoMessage()

func (*CaptureInfo) ProtoReflect

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

func (*CaptureInfo) Reset

func (x *CaptureInfo) Reset()

func (*CaptureInfo) String

func (x *CaptureInfo) String() string

type CaptureInfoResponse

type CaptureInfoResponse struct {
	CaptureInfo *CaptureInfo `protobuf:"bytes,1,opt,name=capture_info,json=captureInfo,proto3" json:"capture_info,omitempty"` // Capture info
	// contains filtered or unexported fields
}

func (*CaptureInfoResponse) Descriptor deprecated

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

Deprecated: Use CaptureInfoResponse.ProtoReflect.Descriptor instead.

func (*CaptureInfoResponse) GetCaptureInfo

func (x *CaptureInfoResponse) GetCaptureInfo() *CaptureInfo

func (*CaptureInfoResponse) ProtoMessage

func (*CaptureInfoResponse) ProtoMessage()

func (*CaptureInfoResponse) ProtoReflect

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

func (*CaptureInfoResponse) Reset

func (x *CaptureInfoResponse) Reset()

func (*CaptureInfoResponse) String

func (x *CaptureInfoResponse) String() string

type CurrentSettingsResponse

type CurrentSettingsResponse struct {
	CurrentSettings []*Setting `protobuf:"bytes,1,rep,name=current_settings,json=currentSettings,proto3" json:"current_settings,omitempty"` // List of current settings
	// contains filtered or unexported fields
}

func (*CurrentSettingsResponse) Descriptor deprecated

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

Deprecated: Use CurrentSettingsResponse.ProtoReflect.Descriptor instead.

func (*CurrentSettingsResponse) GetCurrentSettings

func (x *CurrentSettingsResponse) GetCurrentSettings() []*Setting

func (*CurrentSettingsResponse) ProtoMessage

func (*CurrentSettingsResponse) ProtoMessage()

func (*CurrentSettingsResponse) ProtoReflect

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

func (*CurrentSettingsResponse) Reset

func (x *CurrentSettingsResponse) Reset()

func (*CurrentSettingsResponse) String

func (x *CurrentSettingsResponse) String() string

type EulerAngle

type EulerAngle struct {
	RollDeg  float32 `protobuf:"fixed32,1,opt,name=roll_deg,json=rollDeg,proto3" json:"roll_deg,omitempty"`    // Roll angle in degrees, positive is banking to the right
	PitchDeg float32 `protobuf:"fixed32,2,opt,name=pitch_deg,json=pitchDeg,proto3" json:"pitch_deg,omitempty"` // Pitch angle in degrees, positive is pitching nose up
	YawDeg   float32 `protobuf:"fixed32,3,opt,name=yaw_deg,json=yawDeg,proto3" json:"yaw_deg,omitempty"`       // Yaw angle in degrees, positive is clock-wise seen from above
	// contains filtered or unexported fields
}

Euler angle type.

All rotations and axis systems follow the right-hand rule. The Euler angles follow the convention of a 3-2-1 intrinsic Tait-Bryan rotation sequence.

For more info see https://en.wikipedia.org/wiki/Euler_angles

func (*EulerAngle) Descriptor deprecated

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

Deprecated: Use EulerAngle.ProtoReflect.Descriptor instead.

func (*EulerAngle) GetPitchDeg

func (x *EulerAngle) GetPitchDeg() float32

func (*EulerAngle) GetRollDeg

func (x *EulerAngle) GetRollDeg() float32

func (*EulerAngle) GetYawDeg

func (x *EulerAngle) GetYawDeg() float32

func (*EulerAngle) ProtoMessage

func (*EulerAngle) ProtoMessage()

func (*EulerAngle) ProtoReflect

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

func (*EulerAngle) Reset

func (x *EulerAngle) Reset()

func (*EulerAngle) String

func (x *EulerAngle) String() string

type FormatStorageRequest

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

func (*FormatStorageRequest) Descriptor deprecated

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

Deprecated: Use FormatStorageRequest.ProtoReflect.Descriptor instead.

func (*FormatStorageRequest) ProtoMessage

func (*FormatStorageRequest) ProtoMessage()

func (*FormatStorageRequest) ProtoReflect

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

func (*FormatStorageRequest) Reset

func (x *FormatStorageRequest) Reset()

func (*FormatStorageRequest) String

func (x *FormatStorageRequest) String() string

type FormatStorageResponse

type FormatStorageResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*FormatStorageResponse) Descriptor deprecated

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

Deprecated: Use FormatStorageResponse.ProtoReflect.Descriptor instead.

func (*FormatStorageResponse) GetCameraResult

func (x *FormatStorageResponse) GetCameraResult() *CameraResult

func (*FormatStorageResponse) ProtoMessage

func (*FormatStorageResponse) ProtoMessage()

func (*FormatStorageResponse) ProtoReflect

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

func (*FormatStorageResponse) Reset

func (x *FormatStorageResponse) Reset()

func (*FormatStorageResponse) String

func (x *FormatStorageResponse) String() string

type GetSettingRequest

type GetSettingRequest struct {
	Setting *Setting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"` // Requested setting
	// contains filtered or unexported fields
}

func (*GetSettingRequest) Descriptor deprecated

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

Deprecated: Use GetSettingRequest.ProtoReflect.Descriptor instead.

func (*GetSettingRequest) GetSetting

func (x *GetSettingRequest) GetSetting() *Setting

func (*GetSettingRequest) ProtoMessage

func (*GetSettingRequest) ProtoMessage()

func (*GetSettingRequest) ProtoReflect

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

func (*GetSettingRequest) Reset

func (x *GetSettingRequest) Reset()

func (*GetSettingRequest) String

func (x *GetSettingRequest) String() string

type GetSettingResponse

type GetSettingResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	Setting      *Setting      `protobuf:"bytes,2,opt,name=setting,proto3" json:"setting,omitempty"` // Setting
	// contains filtered or unexported fields
}

func (*GetSettingResponse) Descriptor deprecated

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

Deprecated: Use GetSettingResponse.ProtoReflect.Descriptor instead.

func (*GetSettingResponse) GetCameraResult

func (x *GetSettingResponse) GetCameraResult() *CameraResult

func (*GetSettingResponse) GetSetting

func (x *GetSettingResponse) GetSetting() *Setting

func (*GetSettingResponse) ProtoMessage

func (*GetSettingResponse) ProtoMessage()

func (*GetSettingResponse) ProtoReflect

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

func (*GetSettingResponse) Reset

func (x *GetSettingResponse) Reset()

func (*GetSettingResponse) String

func (x *GetSettingResponse) String() string

type Information

type Information struct {
	VendorName             string  `protobuf:"bytes,1,opt,name=vendor_name,json=vendorName,proto3" json:"vendor_name,omitempty"`              // Name of the camera vendor
	ModelName              string  `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`                 // Name of the camera model
	FocalLengthMm          float32 `protobuf:"fixed32,3,opt,name=focal_length_mm,json=focalLengthMm,proto3" json:"focal_length_mm,omitempty"` // Focal length
	HorizontalSensorSizeMm float32 ``                                                                                                         // Horizontal sensor size
	/* 133-byte string literal not displayed */
	VerticalSensorSizeMm float32 `` // Vertical sensor size
	/* 127-byte string literal not displayed */
	HorizontalResolutionPx uint32 `` // Horizontal image resolution in pixels
	/* 130-byte string literal not displayed */
	VerticalResolutionPx uint32 `protobuf:"varint,7,opt,name=vertical_resolution_px,json=verticalResolutionPx,proto3" json:"vertical_resolution_px,omitempty"` // Vertical image resolution in pixels
	// contains filtered or unexported fields
}

Type to represent a camera information.

func (*Information) Descriptor deprecated

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

Deprecated: Use Information.ProtoReflect.Descriptor instead.

func (*Information) GetFocalLengthMm

func (x *Information) GetFocalLengthMm() float32

func (*Information) GetHorizontalResolutionPx

func (x *Information) GetHorizontalResolutionPx() uint32

func (*Information) GetHorizontalSensorSizeMm

func (x *Information) GetHorizontalSensorSizeMm() float32

func (*Information) GetModelName

func (x *Information) GetModelName() string

func (*Information) GetVendorName

func (x *Information) GetVendorName() string

func (*Information) GetVerticalResolutionPx

func (x *Information) GetVerticalResolutionPx() uint32

func (*Information) GetVerticalSensorSizeMm

func (x *Information) GetVerticalSensorSizeMm() float32

func (*Information) ProtoMessage

func (*Information) ProtoMessage()

func (*Information) ProtoReflect

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

func (*Information) Reset

func (x *Information) Reset()

func (*Information) String

func (x *Information) String() string

type InformationResponse

type InformationResponse struct {
	Information *Information `protobuf:"bytes,1,opt,name=information,proto3" json:"information,omitempty"` // Camera information
	// contains filtered or unexported fields
}

func (*InformationResponse) Descriptor deprecated

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

Deprecated: Use InformationResponse.ProtoReflect.Descriptor instead.

func (*InformationResponse) GetInformation

func (x *InformationResponse) GetInformation() *Information

func (*InformationResponse) ProtoMessage

func (*InformationResponse) ProtoMessage()

func (*InformationResponse) ProtoReflect

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

func (*InformationResponse) Reset

func (x *InformationResponse) Reset()

func (*InformationResponse) String

func (x *InformationResponse) String() string

type ListPhotosRequest

type ListPhotosRequest struct {
	PhotosRange PhotosRange `` // Which photos should be listed (all or since connection)
	/* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListPhotosRequest) Descriptor deprecated

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

Deprecated: Use ListPhotosRequest.ProtoReflect.Descriptor instead.

func (*ListPhotosRequest) GetPhotosRange

func (x *ListPhotosRequest) GetPhotosRange() PhotosRange

func (*ListPhotosRequest) ProtoMessage

func (*ListPhotosRequest) ProtoMessage()

func (*ListPhotosRequest) ProtoReflect

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

func (*ListPhotosRequest) Reset

func (x *ListPhotosRequest) Reset()

func (*ListPhotosRequest) String

func (x *ListPhotosRequest) String() string

type ListPhotosResponse

type ListPhotosResponse struct {
	CameraResult *CameraResult  `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	CaptureInfos []*CaptureInfo `protobuf:"bytes,2,rep,name=capture_infos,json=captureInfos,proto3" json:"capture_infos,omitempty"` // List of capture infos (representing the photos)
	// contains filtered or unexported fields
}

func (*ListPhotosResponse) Descriptor deprecated

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

Deprecated: Use ListPhotosResponse.ProtoReflect.Descriptor instead.

func (*ListPhotosResponse) GetCameraResult

func (x *ListPhotosResponse) GetCameraResult() *CameraResult

func (*ListPhotosResponse) GetCaptureInfos

func (x *ListPhotosResponse) GetCaptureInfos() []*CaptureInfo

func (*ListPhotosResponse) ProtoMessage

func (*ListPhotosResponse) ProtoMessage()

func (*ListPhotosResponse) ProtoReflect

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

func (*ListPhotosResponse) Reset

func (x *ListPhotosResponse) Reset()

func (*ListPhotosResponse) String

func (x *ListPhotosResponse) String() string

type Mode

type Mode int32

Camera mode type.

const (
	Mode_MODE_UNKNOWN Mode = 0 // Unknown
	Mode_MODE_PHOTO   Mode = 1 // Photo mode
	Mode_MODE_VIDEO   Mode = 2 // Video mode
)

func (Mode) Descriptor

func (Mode) Descriptor() protoreflect.EnumDescriptor

func (Mode) Enum

func (x Mode) Enum() *Mode

func (Mode) EnumDescriptor deprecated

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

Deprecated: Use Mode.Descriptor instead.

func (Mode) Number

func (x Mode) Number() protoreflect.EnumNumber

func (Mode) String

func (x Mode) String() string

func (Mode) Type

func (Mode) Type() protoreflect.EnumType

type ModeResponse

type ModeResponse struct {
	Mode Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=mavsdk.rpc.camera.Mode" json:"mode,omitempty"` // Camera mode
	// contains filtered or unexported fields
}

func (*ModeResponse) Descriptor deprecated

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

Deprecated: Use ModeResponse.ProtoReflect.Descriptor instead.

func (*ModeResponse) GetMode

func (x *ModeResponse) GetMode() Mode

func (*ModeResponse) ProtoMessage

func (*ModeResponse) ProtoMessage()

func (*ModeResponse) ProtoReflect

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

func (*ModeResponse) Reset

func (x *ModeResponse) Reset()

func (*ModeResponse) String

func (x *ModeResponse) String() string

type Option

type Option struct {
	OptionId          string `protobuf:"bytes,1,opt,name=option_id,json=optionId,proto3" json:"option_id,omitempty"`                            // Name of the option (machine readable)
	OptionDescription string `protobuf:"bytes,2,opt,name=option_description,json=optionDescription,proto3" json:"option_description,omitempty"` // Description of the option (human readable)
	// contains filtered or unexported fields
}

Type to represent a setting option.

func (*Option) Descriptor deprecated

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

Deprecated: Use Option.ProtoReflect.Descriptor instead.

func (*Option) GetOptionDescription

func (x *Option) GetOptionDescription() string

func (*Option) GetOptionId

func (x *Option) GetOptionId() string

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) ProtoReflect

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

func (*Option) Reset

func (x *Option) Reset()

func (*Option) String

func (x *Option) String() string

type PhotosRange

type PhotosRange int32

Photos range type.

const (
	PhotosRange_PHOTOS_RANGE_ALL              PhotosRange = 0 // All the photos present on the camera
	PhotosRange_PHOTOS_RANGE_SINCE_CONNECTION PhotosRange = 1 // Photos taken since MAVSDK got connected
)

func (PhotosRange) Descriptor

func (PhotosRange) Enum

func (x PhotosRange) Enum() *PhotosRange

func (PhotosRange) EnumDescriptor deprecated

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

Deprecated: Use PhotosRange.Descriptor instead.

func (PhotosRange) Number

func (x PhotosRange) Number() protoreflect.EnumNumber

func (PhotosRange) String

func (x PhotosRange) String() string

func (PhotosRange) Type

type Position

type Position 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)
	AbsoluteAltitudeM float32 `protobuf:"fixed32,3,opt,name=absolute_altitude_m,json=absoluteAltitudeM,proto3" json:"absolute_altitude_m,omitempty"` // Altitude AMSL (above mean sea level) in metres
	RelativeAltitudeM float32 `protobuf:"fixed32,4,opt,name=relative_altitude_m,json=relativeAltitudeM,proto3" json:"relative_altitude_m,omitempty"` // Altitude relative to takeoff altitude in metres
	// contains filtered or unexported fields
}

Position type in global coordinates.

func (*Position) Descriptor deprecated

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

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetAbsoluteAltitudeM

func (x *Position) GetAbsoluteAltitudeM() float32

func (*Position) GetLatitudeDeg

func (x *Position) GetLatitudeDeg() float64

func (*Position) GetLongitudeDeg

func (x *Position) GetLongitudeDeg() float64

func (*Position) GetRelativeAltitudeM

func (x *Position) GetRelativeAltitudeM() float32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

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

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type PossibleSettingOptionsResponse

type PossibleSettingOptionsResponse struct {
	SettingOptions []*SettingOptions `protobuf:"bytes,1,rep,name=setting_options,json=settingOptions,proto3" json:"setting_options,omitempty"` // List of settings that can be changed
	// contains filtered or unexported fields
}

func (*PossibleSettingOptionsResponse) Descriptor deprecated

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

Deprecated: Use PossibleSettingOptionsResponse.ProtoReflect.Descriptor instead.

func (*PossibleSettingOptionsResponse) GetSettingOptions

func (x *PossibleSettingOptionsResponse) GetSettingOptions() []*SettingOptions

func (*PossibleSettingOptionsResponse) ProtoMessage

func (*PossibleSettingOptionsResponse) ProtoMessage()

func (*PossibleSettingOptionsResponse) ProtoReflect

func (*PossibleSettingOptionsResponse) Reset

func (x *PossibleSettingOptionsResponse) Reset()

func (*PossibleSettingOptionsResponse) String

type PrepareRequest

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

func (*PrepareRequest) Descriptor deprecated

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

Deprecated: Use PrepareRequest.ProtoReflect.Descriptor instead.

func (*PrepareRequest) ProtoMessage

func (*PrepareRequest) ProtoMessage()

func (*PrepareRequest) ProtoReflect

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

func (*PrepareRequest) Reset

func (x *PrepareRequest) Reset()

func (*PrepareRequest) String

func (x *PrepareRequest) String() string

type PrepareResponse

type PrepareResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareResponse) Descriptor deprecated

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

Deprecated: Use PrepareResponse.ProtoReflect.Descriptor instead.

func (*PrepareResponse) GetCameraResult

func (x *PrepareResponse) GetCameraResult() *CameraResult

func (*PrepareResponse) ProtoMessage

func (*PrepareResponse) ProtoMessage()

func (*PrepareResponse) ProtoReflect

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

func (*PrepareResponse) Reset

func (x *PrepareResponse) Reset()

func (*PrepareResponse) String

func (x *PrepareResponse) String() string

type Quaternion

type Quaternion struct {
	W float32 `protobuf:"fixed32,1,opt,name=w,proto3" json:"w,omitempty"` // Quaternion entry 0, also denoted as a
	X float32 `protobuf:"fixed32,2,opt,name=x,proto3" json:"x,omitempty"` // Quaternion entry 1, also denoted as b
	Y float32 `protobuf:"fixed32,3,opt,name=y,proto3" json:"y,omitempty"` // Quaternion entry 2, also denoted as c
	Z float32 `protobuf:"fixed32,4,opt,name=z,proto3" json:"z,omitempty"` // Quaternion entry 3, also denoted as d
	// contains filtered or unexported fields
}

Quaternion type.

All rotations and axis systems follow the right-hand rule. The Hamilton quaternion product definition is used. A zero-rotation quaternion is represented by (1,0,0,0). The quaternion could also be written as w + xi + yj + zk.

For more info see: https://en.wikipedia.org/wiki/Quaternion

func (*Quaternion) Descriptor deprecated

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

Deprecated: Use Quaternion.ProtoReflect.Descriptor instead.

func (*Quaternion) GetW

func (x *Quaternion) GetW() float32

func (*Quaternion) GetX

func (x *Quaternion) GetX() float32

func (*Quaternion) GetY

func (x *Quaternion) GetY() float32

func (*Quaternion) GetZ

func (x *Quaternion) GetZ() float32

func (*Quaternion) ProtoMessage

func (*Quaternion) ProtoMessage()

func (*Quaternion) ProtoReflect

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

func (*Quaternion) Reset

func (x *Quaternion) Reset()

func (*Quaternion) String

func (x *Quaternion) String() string

type SelectCameraRequest

type SelectCameraRequest struct {
	CameraId int32 `protobuf:"varint,1,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` // Id of camera to be selected
	// contains filtered or unexported fields
}

func (*SelectCameraRequest) Descriptor deprecated

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

Deprecated: Use SelectCameraRequest.ProtoReflect.Descriptor instead.

func (*SelectCameraRequest) GetCameraId

func (x *SelectCameraRequest) GetCameraId() int32

func (*SelectCameraRequest) ProtoMessage

func (*SelectCameraRequest) ProtoMessage()

func (*SelectCameraRequest) ProtoReflect

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

func (*SelectCameraRequest) Reset

func (x *SelectCameraRequest) Reset()

func (*SelectCameraRequest) String

func (x *SelectCameraRequest) String() string

type SelectCameraResponse

type SelectCameraResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectCameraResponse) Descriptor deprecated

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

Deprecated: Use SelectCameraResponse.ProtoReflect.Descriptor instead.

func (*SelectCameraResponse) GetCameraResult

func (x *SelectCameraResponse) GetCameraResult() *CameraResult

func (*SelectCameraResponse) ProtoMessage

func (*SelectCameraResponse) ProtoMessage()

func (*SelectCameraResponse) ProtoReflect

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

func (*SelectCameraResponse) Reset

func (x *SelectCameraResponse) Reset()

func (*SelectCameraResponse) String

func (x *SelectCameraResponse) String() string

type ServiceImpl

type ServiceImpl struct {
	Client CameraServiceClient
}

func (*ServiceImpl) CaptureInfo

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

func (*ServiceImpl) CurrentSettings

func (a *ServiceImpl) CurrentSettings(ctx context.Context) (<-chan []*Setting, error)

func (*ServiceImpl) FormatStorage

func (s *ServiceImpl) FormatStorage(ctx context.Context) (*FormatStorageResponse, error)

func (*ServiceImpl) GetSetting

func (s *ServiceImpl) GetSetting(ctx context.Context, setting *Setting) (*GetSettingResponse, error)

func (*ServiceImpl) Information

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

func (*ServiceImpl) ListPhotos

func (s *ServiceImpl) ListPhotos(ctx context.Context, photosRange *PhotosRange) (*ListPhotosResponse, error)

func (*ServiceImpl) Mode

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

func (*ServiceImpl) PossibleSettingOptions

func (a *ServiceImpl) PossibleSettingOptions(ctx context.Context) (<-chan []*SettingOptions, error)

func (*ServiceImpl) Prepare

func (s *ServiceImpl) Prepare(ctx context.Context) (*PrepareResponse, error)

func (*ServiceImpl) SelectCamera

func (s *ServiceImpl) SelectCamera(ctx context.Context, cameraId int32) (*SelectCameraResponse, error)

func (*ServiceImpl) SetMode

func (s *ServiceImpl) SetMode(ctx context.Context, mode *Mode) (*SetModeResponse, error)

func (*ServiceImpl) SetSetting

func (s *ServiceImpl) SetSetting(ctx context.Context, setting *Setting) (*SetSettingResponse, error)

func (*ServiceImpl) StartPhotoInterval

func (s *ServiceImpl) StartPhotoInterval(ctx context.Context, intervalS float32) (*StartPhotoIntervalResponse, error)

func (*ServiceImpl) StartVideo

func (s *ServiceImpl) StartVideo(ctx context.Context) (*StartVideoResponse, error)

func (*ServiceImpl) StartVideoStreaming

func (s *ServiceImpl) StartVideoStreaming(ctx context.Context) (*StartVideoStreamingResponse, error)

func (*ServiceImpl) Status

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

func (*ServiceImpl) StopPhotoInterval

func (s *ServiceImpl) StopPhotoInterval(ctx context.Context) (*StopPhotoIntervalResponse, error)

func (*ServiceImpl) StopVideo

func (s *ServiceImpl) StopVideo(ctx context.Context) (*StopVideoResponse, error)

func (*ServiceImpl) StopVideoStreaming

func (s *ServiceImpl) StopVideoStreaming(ctx context.Context) (*StopVideoStreamingResponse, error)

func (*ServiceImpl) TakePhoto

func (s *ServiceImpl) TakePhoto(ctx context.Context) (*TakePhotoResponse, error)

func (*ServiceImpl) VideoStreamInfo

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

type SetModeRequest

type SetModeRequest struct {
	Mode Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=mavsdk.rpc.camera.Mode" json:"mode,omitempty"` // Camera mode to set
	// contains filtered or unexported fields
}

func (*SetModeRequest) Descriptor deprecated

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

Deprecated: Use SetModeRequest.ProtoReflect.Descriptor instead.

func (*SetModeRequest) GetMode

func (x *SetModeRequest) GetMode() Mode

func (*SetModeRequest) ProtoMessage

func (*SetModeRequest) ProtoMessage()

func (*SetModeRequest) ProtoReflect

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

func (*SetModeRequest) Reset

func (x *SetModeRequest) Reset()

func (*SetModeRequest) String

func (x *SetModeRequest) String() string

type SetModeResponse

type SetModeResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetModeResponse) Descriptor deprecated

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

Deprecated: Use SetModeResponse.ProtoReflect.Descriptor instead.

func (*SetModeResponse) GetCameraResult

func (x *SetModeResponse) GetCameraResult() *CameraResult

func (*SetModeResponse) ProtoMessage

func (*SetModeResponse) ProtoMessage()

func (*SetModeResponse) ProtoReflect

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

func (*SetModeResponse) Reset

func (x *SetModeResponse) Reset()

func (*SetModeResponse) String

func (x *SetModeResponse) String() string

type SetSettingRequest

type SetSettingRequest struct {
	Setting *Setting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"` // Desired setting
	// contains filtered or unexported fields
}

func (*SetSettingRequest) Descriptor deprecated

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

Deprecated: Use SetSettingRequest.ProtoReflect.Descriptor instead.

func (*SetSettingRequest) GetSetting

func (x *SetSettingRequest) GetSetting() *Setting

func (*SetSettingRequest) ProtoMessage

func (*SetSettingRequest) ProtoMessage()

func (*SetSettingRequest) ProtoReflect

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

func (*SetSettingRequest) Reset

func (x *SetSettingRequest) Reset()

func (*SetSettingRequest) String

func (x *SetSettingRequest) String() string

type SetSettingResponse

type SetSettingResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSettingResponse) Descriptor deprecated

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

Deprecated: Use SetSettingResponse.ProtoReflect.Descriptor instead.

func (*SetSettingResponse) GetCameraResult

func (x *SetSettingResponse) GetCameraResult() *CameraResult

func (*SetSettingResponse) ProtoMessage

func (*SetSettingResponse) ProtoMessage()

func (*SetSettingResponse) ProtoReflect

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

func (*SetSettingResponse) Reset

func (x *SetSettingResponse) Reset()

func (*SetSettingResponse) String

func (x *SetSettingResponse) String() string

type Setting

type Setting struct {
	SettingId          string  `protobuf:"bytes,1,opt,name=setting_id,json=settingId,proto3" json:"setting_id,omitempty"`                            // Name of a setting (machine readable)
	SettingDescription string  `protobuf:"bytes,2,opt,name=setting_description,json=settingDescription,proto3" json:"setting_description,omitempty"` // Description of the setting (human readable). This field is meant to be read from the drone, ignore it when setting.
	Option             *Option `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"`                                                   // Selected option
	IsRange            bool    `protobuf:"varint,4,opt,name=is_range,json=isRange,proto3" json:"is_range,omitempty"`                                 // If option is given as a range. This field is meant to be read from the drone, ignore it when setting.
	// contains filtered or unexported fields
}

Type to represent a setting with a selected option.

func (*Setting) Descriptor deprecated

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

Deprecated: Use Setting.ProtoReflect.Descriptor instead.

func (*Setting) GetIsRange

func (x *Setting) GetIsRange() bool

func (*Setting) GetOption

func (x *Setting) GetOption() *Option

func (*Setting) GetSettingDescription

func (x *Setting) GetSettingDescription() string

func (*Setting) GetSettingId

func (x *Setting) GetSettingId() string

func (*Setting) ProtoMessage

func (*Setting) ProtoMessage()

func (*Setting) ProtoReflect

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

func (*Setting) Reset

func (x *Setting) Reset()

func (*Setting) String

func (x *Setting) String() string

type SettingOptions

type SettingOptions struct {
	SettingId          string    `protobuf:"bytes,1,opt,name=setting_id,json=settingId,proto3" json:"setting_id,omitempty"`                            // Name of the setting (machine readable)
	SettingDescription string    `protobuf:"bytes,2,opt,name=setting_description,json=settingDescription,proto3" json:"setting_description,omitempty"` // Description of the setting (human readable)
	Options            []*Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`                                                 // List of options or if range [min, max] or [min, max, interval]
	IsRange            bool      `protobuf:"varint,4,opt,name=is_range,json=isRange,proto3" json:"is_range,omitempty"`                                 // If option is given as a range
	// contains filtered or unexported fields
}

Type to represent a setting with a list of options to choose from.

func (*SettingOptions) Descriptor deprecated

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

Deprecated: Use SettingOptions.ProtoReflect.Descriptor instead.

func (*SettingOptions) GetIsRange

func (x *SettingOptions) GetIsRange() bool

func (*SettingOptions) GetOptions

func (x *SettingOptions) GetOptions() []*Option

func (*SettingOptions) GetSettingDescription

func (x *SettingOptions) GetSettingDescription() string

func (*SettingOptions) GetSettingId

func (x *SettingOptions) GetSettingId() string

func (*SettingOptions) ProtoMessage

func (*SettingOptions) ProtoMessage()

func (*SettingOptions) ProtoReflect

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

func (*SettingOptions) Reset

func (x *SettingOptions) Reset()

func (*SettingOptions) String

func (x *SettingOptions) String() string

type StartPhotoIntervalRequest

type StartPhotoIntervalRequest struct {
	IntervalS float32 `protobuf:"fixed32,1,opt,name=interval_s,json=intervalS,proto3" json:"interval_s,omitempty"` // Interval between photos (in seconds)
	// contains filtered or unexported fields
}

func (*StartPhotoIntervalRequest) Descriptor deprecated

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

Deprecated: Use StartPhotoIntervalRequest.ProtoReflect.Descriptor instead.

func (*StartPhotoIntervalRequest) GetIntervalS

func (x *StartPhotoIntervalRequest) GetIntervalS() float32

func (*StartPhotoIntervalRequest) ProtoMessage

func (*StartPhotoIntervalRequest) ProtoMessage()

func (*StartPhotoIntervalRequest) ProtoReflect

func (*StartPhotoIntervalRequest) Reset

func (x *StartPhotoIntervalRequest) Reset()

func (*StartPhotoIntervalRequest) String

func (x *StartPhotoIntervalRequest) String() string

type StartPhotoIntervalResponse

type StartPhotoIntervalResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StartPhotoIntervalResponse) Descriptor deprecated

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

Deprecated: Use StartPhotoIntervalResponse.ProtoReflect.Descriptor instead.

func (*StartPhotoIntervalResponse) GetCameraResult

func (x *StartPhotoIntervalResponse) GetCameraResult() *CameraResult

func (*StartPhotoIntervalResponse) ProtoMessage

func (*StartPhotoIntervalResponse) ProtoMessage()

func (*StartPhotoIntervalResponse) ProtoReflect

func (*StartPhotoIntervalResponse) Reset

func (x *StartPhotoIntervalResponse) Reset()

func (*StartPhotoIntervalResponse) String

func (x *StartPhotoIntervalResponse) String() string

type StartVideoRequest

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

func (*StartVideoRequest) Descriptor deprecated

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

Deprecated: Use StartVideoRequest.ProtoReflect.Descriptor instead.

func (*StartVideoRequest) ProtoMessage

func (*StartVideoRequest) ProtoMessage()

func (*StartVideoRequest) ProtoReflect

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

func (*StartVideoRequest) Reset

func (x *StartVideoRequest) Reset()

func (*StartVideoRequest) String

func (x *StartVideoRequest) String() string

type StartVideoResponse

type StartVideoResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StartVideoResponse) Descriptor deprecated

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

Deprecated: Use StartVideoResponse.ProtoReflect.Descriptor instead.

func (*StartVideoResponse) GetCameraResult

func (x *StartVideoResponse) GetCameraResult() *CameraResult

func (*StartVideoResponse) ProtoMessage

func (*StartVideoResponse) ProtoMessage()

func (*StartVideoResponse) ProtoReflect

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

func (*StartVideoResponse) Reset

func (x *StartVideoResponse) Reset()

func (*StartVideoResponse) String

func (x *StartVideoResponse) String() string

type StartVideoStreamingRequest

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

func (*StartVideoStreamingRequest) Descriptor deprecated

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

Deprecated: Use StartVideoStreamingRequest.ProtoReflect.Descriptor instead.

func (*StartVideoStreamingRequest) ProtoMessage

func (*StartVideoStreamingRequest) ProtoMessage()

func (*StartVideoStreamingRequest) ProtoReflect

func (*StartVideoStreamingRequest) Reset

func (x *StartVideoStreamingRequest) Reset()

func (*StartVideoStreamingRequest) String

func (x *StartVideoStreamingRequest) String() string

type StartVideoStreamingResponse

type StartVideoStreamingResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StartVideoStreamingResponse) Descriptor deprecated

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

Deprecated: Use StartVideoStreamingResponse.ProtoReflect.Descriptor instead.

func (*StartVideoStreamingResponse) GetCameraResult

func (x *StartVideoStreamingResponse) GetCameraResult() *CameraResult

func (*StartVideoStreamingResponse) ProtoMessage

func (*StartVideoStreamingResponse) ProtoMessage()

func (*StartVideoStreamingResponse) ProtoReflect

func (*StartVideoStreamingResponse) Reset

func (x *StartVideoStreamingResponse) Reset()

func (*StartVideoStreamingResponse) String

func (x *StartVideoStreamingResponse) String() string

type Status

type Status struct {
	VideoOn             bool                 `protobuf:"varint,1,opt,name=video_on,json=videoOn,proto3" json:"video_on,omitempty"`                                        // Whether video recording is currently in process
	PhotoIntervalOn     bool                 `protobuf:"varint,2,opt,name=photo_interval_on,json=photoIntervalOn,proto3" json:"photo_interval_on,omitempty"`              // Whether a photo interval is currently in process
	UsedStorageMib      float32              `protobuf:"fixed32,3,opt,name=used_storage_mib,json=usedStorageMib,proto3" json:"used_storage_mib,omitempty"`                // Used storage (in MiB)
	AvailableStorageMib float32              `protobuf:"fixed32,4,opt,name=available_storage_mib,json=availableStorageMib,proto3" json:"available_storage_mib,omitempty"` // Available storage (in MiB)
	TotalStorageMib     float32              `protobuf:"fixed32,5,opt,name=total_storage_mib,json=totalStorageMib,proto3" json:"total_storage_mib,omitempty"`             // Total storage (in MiB)
	RecordingTimeS      float32              `protobuf:"fixed32,6,opt,name=recording_time_s,json=recordingTimeS,proto3" json:"recording_time_s,omitempty"`                // Elapsed time since starting the video recording (in seconds)
	MediaFolderName     string               `protobuf:"bytes,7,opt,name=media_folder_name,json=mediaFolderName,proto3" json:"media_folder_name,omitempty"`               // Current folder name where media are saved
	StorageStatus       Status_StorageStatus ``                                                                                                                           // Storage status
	/* 145-byte string literal not displayed */
	StorageId   uint32             `protobuf:"varint,9,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"` // Storage ID starting at 1
	StorageType Status_StorageType ``                                                                                          // Storage type
	/* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the camera status.

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetAvailableStorageMib

func (x *Status) GetAvailableStorageMib() float32

func (*Status) GetMediaFolderName

func (x *Status) GetMediaFolderName() string

func (*Status) GetPhotoIntervalOn

func (x *Status) GetPhotoIntervalOn() bool

func (*Status) GetRecordingTimeS

func (x *Status) GetRecordingTimeS() float32

func (*Status) GetStorageId

func (x *Status) GetStorageId() uint32

func (*Status) GetStorageStatus

func (x *Status) GetStorageStatus() Status_StorageStatus

func (*Status) GetStorageType

func (x *Status) GetStorageType() Status_StorageType

func (*Status) GetTotalStorageMib

func (x *Status) GetTotalStorageMib() float32

func (*Status) GetUsedStorageMib

func (x *Status) GetUsedStorageMib() float32

func (*Status) GetVideoOn

func (x *Status) GetVideoOn() bool

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type StatusResponse

type StatusResponse struct {
	CameraStatus *Status `protobuf:"bytes,1,opt,name=camera_status,json=cameraStatus,proto3" json:"camera_status,omitempty"` // Camera status
	// contains filtered or unexported fields
}

func (*StatusResponse) Descriptor deprecated

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

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetCameraStatus

func (x *StatusResponse) GetCameraStatus() *Status

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect

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

func (*StatusResponse) Reset

func (x *StatusResponse) Reset()

func (*StatusResponse) String

func (x *StatusResponse) String() string

type Status_StorageStatus

type Status_StorageStatus int32

Storage status type.

const (
	Status_STORAGE_STATUS_NOT_AVAILABLE Status_StorageStatus = 0 // Status not available
	Status_STORAGE_STATUS_UNFORMATTED   Status_StorageStatus = 1 // Storage is not formatted (i.e. has no recognized file system)
	Status_STORAGE_STATUS_FORMATTED     Status_StorageStatus = 2 // Storage is formatted (i.e. has recognized a file system)
	Status_STORAGE_STATUS_NOT_SUPPORTED Status_StorageStatus = 3 // Storage status is not supported
)

func (Status_StorageStatus) Descriptor

func (Status_StorageStatus) Enum

func (Status_StorageStatus) EnumDescriptor deprecated

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

Deprecated: Use Status_StorageStatus.Descriptor instead.

func (Status_StorageStatus) Number

func (Status_StorageStatus) String

func (x Status_StorageStatus) String() string

func (Status_StorageStatus) Type

type Status_StorageType

type Status_StorageType int32

Storage type.

const (
	Status_STORAGE_TYPE_UNKNOWN   Status_StorageType = 0   // Storage type unknown
	Status_STORAGE_TYPE_USB_STICK Status_StorageType = 1   // Storage type USB stick
	Status_STORAGE_TYPE_SD        Status_StorageType = 2   // Storage type SD card
	Status_STORAGE_TYPE_MICROSD   Status_StorageType = 3   // Storage type MicroSD card
	Status_STORAGE_TYPE_HD        Status_StorageType = 7   // Storage type HD mass storage
	Status_STORAGE_TYPE_OTHER     Status_StorageType = 254 // Storage type other, not listed
)

func (Status_StorageType) Descriptor

func (Status_StorageType) Enum

func (Status_StorageType) EnumDescriptor deprecated

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

Deprecated: Use Status_StorageType.Descriptor instead.

func (Status_StorageType) Number

func (Status_StorageType) String

func (x Status_StorageType) String() string

func (Status_StorageType) Type

type StopPhotoIntervalRequest

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

func (*StopPhotoIntervalRequest) Descriptor deprecated

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

Deprecated: Use StopPhotoIntervalRequest.ProtoReflect.Descriptor instead.

func (*StopPhotoIntervalRequest) ProtoMessage

func (*StopPhotoIntervalRequest) ProtoMessage()

func (*StopPhotoIntervalRequest) ProtoReflect

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

func (*StopPhotoIntervalRequest) Reset

func (x *StopPhotoIntervalRequest) Reset()

func (*StopPhotoIntervalRequest) String

func (x *StopPhotoIntervalRequest) String() string

type StopPhotoIntervalResponse

type StopPhotoIntervalResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StopPhotoIntervalResponse) Descriptor deprecated

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

Deprecated: Use StopPhotoIntervalResponse.ProtoReflect.Descriptor instead.

func (*StopPhotoIntervalResponse) GetCameraResult

func (x *StopPhotoIntervalResponse) GetCameraResult() *CameraResult

func (*StopPhotoIntervalResponse) ProtoMessage

func (*StopPhotoIntervalResponse) ProtoMessage()

func (*StopPhotoIntervalResponse) ProtoReflect

func (*StopPhotoIntervalResponse) Reset

func (x *StopPhotoIntervalResponse) Reset()

func (*StopPhotoIntervalResponse) String

func (x *StopPhotoIntervalResponse) String() string

type StopVideoRequest

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

func (*StopVideoRequest) Descriptor deprecated

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

Deprecated: Use StopVideoRequest.ProtoReflect.Descriptor instead.

func (*StopVideoRequest) ProtoMessage

func (*StopVideoRequest) ProtoMessage()

func (*StopVideoRequest) ProtoReflect

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

func (*StopVideoRequest) Reset

func (x *StopVideoRequest) Reset()

func (*StopVideoRequest) String

func (x *StopVideoRequest) String() string

type StopVideoResponse

type StopVideoResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StopVideoResponse) Descriptor deprecated

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

Deprecated: Use StopVideoResponse.ProtoReflect.Descriptor instead.

func (*StopVideoResponse) GetCameraResult

func (x *StopVideoResponse) GetCameraResult() *CameraResult

func (*StopVideoResponse) ProtoMessage

func (*StopVideoResponse) ProtoMessage()

func (*StopVideoResponse) ProtoReflect

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

func (*StopVideoResponse) Reset

func (x *StopVideoResponse) Reset()

func (*StopVideoResponse) String

func (x *StopVideoResponse) String() string

type StopVideoStreamingRequest

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

func (*StopVideoStreamingRequest) Descriptor deprecated

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

Deprecated: Use StopVideoStreamingRequest.ProtoReflect.Descriptor instead.

func (*StopVideoStreamingRequest) ProtoMessage

func (*StopVideoStreamingRequest) ProtoMessage()

func (*StopVideoStreamingRequest) ProtoReflect

func (*StopVideoStreamingRequest) Reset

func (x *StopVideoStreamingRequest) Reset()

func (*StopVideoStreamingRequest) String

func (x *StopVideoStreamingRequest) String() string

type StopVideoStreamingResponse

type StopVideoStreamingResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*StopVideoStreamingResponse) Descriptor deprecated

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

Deprecated: Use StopVideoStreamingResponse.ProtoReflect.Descriptor instead.

func (*StopVideoStreamingResponse) GetCameraResult

func (x *StopVideoStreamingResponse) GetCameraResult() *CameraResult

func (*StopVideoStreamingResponse) ProtoMessage

func (*StopVideoStreamingResponse) ProtoMessage()

func (*StopVideoStreamingResponse) ProtoReflect

func (*StopVideoStreamingResponse) Reset

func (x *StopVideoStreamingResponse) Reset()

func (*StopVideoStreamingResponse) String

func (x *StopVideoStreamingResponse) String() string

type SubscribeCaptureInfoRequest

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

func (*SubscribeCaptureInfoRequest) Descriptor deprecated

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

Deprecated: Use SubscribeCaptureInfoRequest.ProtoReflect.Descriptor instead.

func (*SubscribeCaptureInfoRequest) ProtoMessage

func (*SubscribeCaptureInfoRequest) ProtoMessage()

func (*SubscribeCaptureInfoRequest) ProtoReflect

func (*SubscribeCaptureInfoRequest) Reset

func (x *SubscribeCaptureInfoRequest) Reset()

func (*SubscribeCaptureInfoRequest) String

func (x *SubscribeCaptureInfoRequest) String() string

type SubscribeCurrentSettingsRequest

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

func (*SubscribeCurrentSettingsRequest) Descriptor deprecated

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

Deprecated: Use SubscribeCurrentSettingsRequest.ProtoReflect.Descriptor instead.

func (*SubscribeCurrentSettingsRequest) ProtoMessage

func (*SubscribeCurrentSettingsRequest) ProtoMessage()

func (*SubscribeCurrentSettingsRequest) ProtoReflect

func (*SubscribeCurrentSettingsRequest) Reset

func (*SubscribeCurrentSettingsRequest) String

type SubscribeInformationRequest

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

func (*SubscribeInformationRequest) Descriptor deprecated

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

Deprecated: Use SubscribeInformationRequest.ProtoReflect.Descriptor instead.

func (*SubscribeInformationRequest) ProtoMessage

func (*SubscribeInformationRequest) ProtoMessage()

func (*SubscribeInformationRequest) ProtoReflect

func (*SubscribeInformationRequest) Reset

func (x *SubscribeInformationRequest) Reset()

func (*SubscribeInformationRequest) String

func (x *SubscribeInformationRequest) String() string

type SubscribeModeRequest

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

func (*SubscribeModeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeModeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeModeRequest) ProtoMessage

func (*SubscribeModeRequest) ProtoMessage()

func (*SubscribeModeRequest) ProtoReflect

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

func (*SubscribeModeRequest) Reset

func (x *SubscribeModeRequest) Reset()

func (*SubscribeModeRequest) String

func (x *SubscribeModeRequest) String() string

type SubscribePossibleSettingOptionsRequest

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

func (*SubscribePossibleSettingOptionsRequest) Descriptor deprecated

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

Deprecated: Use SubscribePossibleSettingOptionsRequest.ProtoReflect.Descriptor instead.

func (*SubscribePossibleSettingOptionsRequest) ProtoMessage

func (*SubscribePossibleSettingOptionsRequest) ProtoReflect

func (*SubscribePossibleSettingOptionsRequest) Reset

func (*SubscribePossibleSettingOptionsRequest) String

type SubscribeStatusRequest

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

func (*SubscribeStatusRequest) Descriptor deprecated

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

Deprecated: Use SubscribeStatusRequest.ProtoReflect.Descriptor instead.

func (*SubscribeStatusRequest) ProtoMessage

func (*SubscribeStatusRequest) ProtoMessage()

func (*SubscribeStatusRequest) ProtoReflect

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

func (*SubscribeStatusRequest) Reset

func (x *SubscribeStatusRequest) Reset()

func (*SubscribeStatusRequest) String

func (x *SubscribeStatusRequest) String() string

type SubscribeVideoStreamInfoRequest

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

func (*SubscribeVideoStreamInfoRequest) Descriptor deprecated

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

Deprecated: Use SubscribeVideoStreamInfoRequest.ProtoReflect.Descriptor instead.

func (*SubscribeVideoStreamInfoRequest) ProtoMessage

func (*SubscribeVideoStreamInfoRequest) ProtoMessage()

func (*SubscribeVideoStreamInfoRequest) ProtoReflect

func (*SubscribeVideoStreamInfoRequest) Reset

func (*SubscribeVideoStreamInfoRequest) String

type TakePhotoRequest

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

func (*TakePhotoRequest) Descriptor deprecated

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

Deprecated: Use TakePhotoRequest.ProtoReflect.Descriptor instead.

func (*TakePhotoRequest) ProtoMessage

func (*TakePhotoRequest) ProtoMessage()

func (*TakePhotoRequest) ProtoReflect

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

func (*TakePhotoRequest) Reset

func (x *TakePhotoRequest) Reset()

func (*TakePhotoRequest) String

func (x *TakePhotoRequest) String() string

type TakePhotoResponse

type TakePhotoResponse struct {
	CameraResult *CameraResult `protobuf:"bytes,1,opt,name=camera_result,json=cameraResult,proto3" json:"camera_result,omitempty"`
	// contains filtered or unexported fields
}

func (*TakePhotoResponse) Descriptor deprecated

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

Deprecated: Use TakePhotoResponse.ProtoReflect.Descriptor instead.

func (*TakePhotoResponse) GetCameraResult

func (x *TakePhotoResponse) GetCameraResult() *CameraResult

func (*TakePhotoResponse) ProtoMessage

func (*TakePhotoResponse) ProtoMessage()

func (*TakePhotoResponse) ProtoReflect

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

func (*TakePhotoResponse) Reset

func (x *TakePhotoResponse) Reset()

func (*TakePhotoResponse) String

func (x *TakePhotoResponse) String() string

type UnimplementedCameraServiceServer

type UnimplementedCameraServiceServer struct {
}

UnimplementedCameraServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCameraServiceServer) FormatStorage

func (UnimplementedCameraServiceServer) GetSetting

func (UnimplementedCameraServiceServer) ListPhotos

func (UnimplementedCameraServiceServer) Prepare

func (UnimplementedCameraServiceServer) SelectCamera

func (UnimplementedCameraServiceServer) SetMode

func (UnimplementedCameraServiceServer) SetSetting

func (UnimplementedCameraServiceServer) StartPhotoInterval

func (UnimplementedCameraServiceServer) StartVideo

func (UnimplementedCameraServiceServer) StopPhotoInterval

func (UnimplementedCameraServiceServer) StopVideo

func (UnimplementedCameraServiceServer) StopVideoStreaming

func (UnimplementedCameraServiceServer) SubscribeMode

func (UnimplementedCameraServiceServer) TakePhoto

type UnsafeCameraServiceServer

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

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

type VideoStreamInfo

type VideoStreamInfo struct {
	Settings *VideoStreamSettings                `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`                                                       // Video stream settings
	Status   VideoStreamInfo_VideoStreamStatus   `protobuf:"varint,2,opt,name=status,proto3,enum=mavsdk.rpc.camera.VideoStreamInfo_VideoStreamStatus" json:"status,omitempty"` // Current status of video streaming
	Spectrum VideoStreamInfo_VideoStreamSpectrum ``                                                                                                                            // Light-spectrum of the video stream
	/* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the video stream.

func (*VideoStreamInfo) Descriptor deprecated

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

Deprecated: Use VideoStreamInfo.ProtoReflect.Descriptor instead.

func (*VideoStreamInfo) GetSettings

func (x *VideoStreamInfo) GetSettings() *VideoStreamSettings

func (*VideoStreamInfo) GetSpectrum

func (*VideoStreamInfo) GetStatus

func (*VideoStreamInfo) ProtoMessage

func (*VideoStreamInfo) ProtoMessage()

func (*VideoStreamInfo) ProtoReflect

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

func (*VideoStreamInfo) Reset

func (x *VideoStreamInfo) Reset()

func (*VideoStreamInfo) String

func (x *VideoStreamInfo) String() string

type VideoStreamInfoResponse

type VideoStreamInfoResponse struct {
	VideoStreamInfo *VideoStreamInfo `protobuf:"bytes,1,opt,name=video_stream_info,json=videoStreamInfo,proto3" json:"video_stream_info,omitempty"` // Video stream info
	// contains filtered or unexported fields
}

func (*VideoStreamInfoResponse) Descriptor deprecated

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

Deprecated: Use VideoStreamInfoResponse.ProtoReflect.Descriptor instead.

func (*VideoStreamInfoResponse) GetVideoStreamInfo

func (x *VideoStreamInfoResponse) GetVideoStreamInfo() *VideoStreamInfo

func (*VideoStreamInfoResponse) ProtoMessage

func (*VideoStreamInfoResponse) ProtoMessage()

func (*VideoStreamInfoResponse) ProtoReflect

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

func (*VideoStreamInfoResponse) Reset

func (x *VideoStreamInfoResponse) Reset()

func (*VideoStreamInfoResponse) String

func (x *VideoStreamInfoResponse) String() string

type VideoStreamInfo_VideoStreamSpectrum

type VideoStreamInfo_VideoStreamSpectrum int32

Video stream light spectrum type

const (
	VideoStreamInfo_VIDEO_STREAM_SPECTRUM_UNKNOWN       VideoStreamInfo_VideoStreamSpectrum = 0 // Unknown
	VideoStreamInfo_VIDEO_STREAM_SPECTRUM_VISIBLE_LIGHT VideoStreamInfo_VideoStreamSpectrum = 1 // Visible light
	VideoStreamInfo_VIDEO_STREAM_SPECTRUM_INFRARED      VideoStreamInfo_VideoStreamSpectrum = 2 // Infrared
)

func (VideoStreamInfo_VideoStreamSpectrum) Descriptor

func (VideoStreamInfo_VideoStreamSpectrum) Enum

func (VideoStreamInfo_VideoStreamSpectrum) EnumDescriptor deprecated

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

Deprecated: Use VideoStreamInfo_VideoStreamSpectrum.Descriptor instead.

func (VideoStreamInfo_VideoStreamSpectrum) Number

func (VideoStreamInfo_VideoStreamSpectrum) String

func (VideoStreamInfo_VideoStreamSpectrum) Type

type VideoStreamInfo_VideoStreamStatus

type VideoStreamInfo_VideoStreamStatus int32

Video stream status type.

const (
	VideoStreamInfo_VIDEO_STREAM_STATUS_NOT_RUNNING VideoStreamInfo_VideoStreamStatus = 0 // Video stream is not running
	VideoStreamInfo_VIDEO_STREAM_STATUS_IN_PROGRESS VideoStreamInfo_VideoStreamStatus = 1 // Video stream is running
)

func (VideoStreamInfo_VideoStreamStatus) Descriptor

func (VideoStreamInfo_VideoStreamStatus) Enum

func (VideoStreamInfo_VideoStreamStatus) EnumDescriptor deprecated

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

Deprecated: Use VideoStreamInfo_VideoStreamStatus.Descriptor instead.

func (VideoStreamInfo_VideoStreamStatus) Number

func (VideoStreamInfo_VideoStreamStatus) String

func (VideoStreamInfo_VideoStreamStatus) Type

type VideoStreamSettings

type VideoStreamSettings struct {
	FrameRateHz             float32 `protobuf:"fixed32,1,opt,name=frame_rate_hz,json=frameRateHz,proto3" json:"frame_rate_hz,omitempty"` // Frames per second
	HorizontalResolutionPix uint32  ``                                                                                                   // Horizontal resolution (in pixels)
	/* 133-byte string literal not displayed */
	VerticalResolutionPix uint32 `` // Vertical resolution (in pixels)
	/* 127-byte string literal not displayed */
	BitRateBS        uint32  `protobuf:"varint,4,opt,name=bit_rate_b_s,json=bitRateBS,proto3" json:"bit_rate_b_s,omitempty"`                     // Bit rate (in bits per second)
	RotationDeg      uint32  `protobuf:"varint,5,opt,name=rotation_deg,json=rotationDeg,proto3" json:"rotation_deg,omitempty"`                   // Video image rotation (clockwise, 0-359 degrees)
	Uri              string  `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"`                                                       // Video stream URI
	HorizontalFovDeg float32 `protobuf:"fixed32,7,opt,name=horizontal_fov_deg,json=horizontalFovDeg,proto3" json:"horizontal_fov_deg,omitempty"` // Horizontal fov in degrees
	// contains filtered or unexported fields
}

Type for video stream settings.

func (*VideoStreamSettings) Descriptor deprecated

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

Deprecated: Use VideoStreamSettings.ProtoReflect.Descriptor instead.

func (*VideoStreamSettings) GetBitRateBS

func (x *VideoStreamSettings) GetBitRateBS() uint32

func (*VideoStreamSettings) GetFrameRateHz

func (x *VideoStreamSettings) GetFrameRateHz() float32

func (*VideoStreamSettings) GetHorizontalFovDeg

func (x *VideoStreamSettings) GetHorizontalFovDeg() float32

func (*VideoStreamSettings) GetHorizontalResolutionPix

func (x *VideoStreamSettings) GetHorizontalResolutionPix() uint32

func (*VideoStreamSettings) GetRotationDeg

func (x *VideoStreamSettings) GetRotationDeg() uint32

func (*VideoStreamSettings) GetUri

func (x *VideoStreamSettings) GetUri() string

func (*VideoStreamSettings) GetVerticalResolutionPix

func (x *VideoStreamSettings) GetVerticalResolutionPix() uint32

func (*VideoStreamSettings) ProtoMessage

func (*VideoStreamSettings) ProtoMessage()

func (*VideoStreamSettings) ProtoReflect

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

func (*VideoStreamSettings) Reset

func (x *VideoStreamSettings) Reset()

func (*VideoStreamSettings) String

func (x *VideoStreamSettings) String() string

Jump to

Keyboard shortcuts

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