gimbal

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 (
	GimbalMode_name = map[int32]string{
		0: "GIMBAL_MODE_YAW_FOLLOW",
		1: "GIMBAL_MODE_YAW_LOCK",
	}
	GimbalMode_value = map[string]int32{
		"GIMBAL_MODE_YAW_FOLLOW": 0,
		"GIMBAL_MODE_YAW_LOCK":   1,
	}
)

Enum value maps for GimbalMode.

View Source
var (
	ControlMode_name = map[int32]string{
		0: "CONTROL_MODE_NONE",
		1: "CONTROL_MODE_PRIMARY",
		2: "CONTROL_MODE_SECONDARY",
	}
	ControlMode_value = map[string]int32{
		"CONTROL_MODE_NONE":      0,
		"CONTROL_MODE_PRIMARY":   1,
		"CONTROL_MODE_SECONDARY": 2,
	}
)

Enum value maps for ControlMode.

View Source
var (
	GimbalResult_Result_name = map[int32]string{
		0: "RESULT_UNKNOWN",
		1: "RESULT_SUCCESS",
		2: "RESULT_ERROR",
		3: "RESULT_TIMEOUT",
		4: "RESULT_UNSUPPORTED",
		5: "RESULT_NO_SYSTEM",
	}
	GimbalResult_Result_value = map[string]int32{
		"RESULT_UNKNOWN":     0,
		"RESULT_SUCCESS":     1,
		"RESULT_ERROR":       2,
		"RESULT_TIMEOUT":     3,
		"RESULT_UNSUPPORTED": 4,
		"RESULT_NO_SYSTEM":   5,
	}
)

Enum value maps for GimbalResult_Result.

View Source
var File_gimbal_proto protoreflect.FileDescriptor
View Source
var GimbalService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mavsdk.rpc.gimbal.GimbalService",
	HandlerType: (*GimbalServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetPitchAndYaw",
			Handler:    _GimbalService_SetPitchAndYaw_Handler,
		},
		{
			MethodName: "SetPitchRateAndYawRate",
			Handler:    _GimbalService_SetPitchRateAndYawRate_Handler,
		},
		{
			MethodName: "SetMode",
			Handler:    _GimbalService_SetMode_Handler,
		},
		{
			MethodName: "SetRoiLocation",
			Handler:    _GimbalService_SetRoiLocation_Handler,
		},
		{
			MethodName: "TakeControl",
			Handler:    _GimbalService_TakeControl_Handler,
		},
		{
			MethodName: "ReleaseControl",
			Handler:    _GimbalService_ReleaseControl_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeControl",
			Handler:       _GimbalService_SubscribeControl_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "gimbal.proto",
}

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

Functions

func RegisterGimbalServiceServer

func RegisterGimbalServiceServer(s grpc.ServiceRegistrar, srv GimbalServiceServer)

Types

type ControlMode

type ControlMode int32

Control mode

const (
	ControlMode_CONTROL_MODE_NONE      ControlMode = 0 // Indicates that the component does not have control over the gimbal
	ControlMode_CONTROL_MODE_PRIMARY   ControlMode = 1 // To take primary control over the gimbal
	ControlMode_CONTROL_MODE_SECONDARY ControlMode = 2 // To take secondary control over the gimbal
)

func (ControlMode) Descriptor

func (ControlMode) Enum

func (x ControlMode) Enum() *ControlMode

func (ControlMode) EnumDescriptor deprecated

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

Deprecated: Use ControlMode.Descriptor instead.

func (ControlMode) Number

func (x ControlMode) Number() protoreflect.EnumNumber

func (ControlMode) String

func (x ControlMode) String() string

func (ControlMode) Type

type ControlResponse

type ControlResponse struct {
	ControlStatus *ControlStatus `protobuf:"bytes,1,opt,name=control_status,json=controlStatus,proto3" json:"control_status,omitempty"` // Control status
	// contains filtered or unexported fields
}

func (*ControlResponse) Descriptor deprecated

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

Deprecated: Use ControlResponse.ProtoReflect.Descriptor instead.

func (*ControlResponse) GetControlStatus

func (x *ControlResponse) GetControlStatus() *ControlStatus

func (*ControlResponse) ProtoMessage

func (*ControlResponse) ProtoMessage()

func (*ControlResponse) ProtoReflect

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

func (*ControlResponse) Reset

func (x *ControlResponse) Reset()

func (*ControlResponse) String

func (x *ControlResponse) String() string

type ControlStatus

type ControlStatus struct {
	ControlMode ControlMode `` // Control mode (none, primary or secondary)
	/* 130-byte string literal not displayed */
	SysidPrimaryControl   int32 `protobuf:"varint,2,opt,name=sysid_primary_control,json=sysidPrimaryControl,proto3" json:"sysid_primary_control,omitempty"`    // Sysid of the component that has primary control over the gimbal (0 if no one is in control)
	CompidPrimaryControl  int32 `protobuf:"varint,3,opt,name=compid_primary_control,json=compidPrimaryControl,proto3" json:"compid_primary_control,omitempty"` // Compid of the component that has primary control over the gimbal (0 if no one is in control)
	SysidSecondaryControl int32 ``                                                                                                                             // Sysid of the component that has secondary control over the gimbal (0 if no one is in control)
	/* 127-byte string literal not displayed */
	CompidSecondaryControl int32 `` // Compid of the component that has secondary control over the gimbal (0 if no one is in control)
	/* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Control status

func (*ControlStatus) Descriptor deprecated

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

Deprecated: Use ControlStatus.ProtoReflect.Descriptor instead.

func (*ControlStatus) GetCompidPrimaryControl

func (x *ControlStatus) GetCompidPrimaryControl() int32

func (*ControlStatus) GetCompidSecondaryControl

func (x *ControlStatus) GetCompidSecondaryControl() int32

func (*ControlStatus) GetControlMode

func (x *ControlStatus) GetControlMode() ControlMode

func (*ControlStatus) GetSysidPrimaryControl

func (x *ControlStatus) GetSysidPrimaryControl() int32

func (*ControlStatus) GetSysidSecondaryControl

func (x *ControlStatus) GetSysidSecondaryControl() int32

func (*ControlStatus) ProtoMessage

func (*ControlStatus) ProtoMessage()

func (*ControlStatus) ProtoReflect

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

func (*ControlStatus) Reset

func (x *ControlStatus) Reset()

func (*ControlStatus) String

func (x *ControlStatus) String() string

type GimbalMode

type GimbalMode int32

Gimbal mode type.

const (
	GimbalMode_GIMBAL_MODE_YAW_FOLLOW GimbalMode = 0 // Yaw follow will point the gimbal to the vehicle heading
	GimbalMode_GIMBAL_MODE_YAW_LOCK   GimbalMode = 1 // Yaw lock will fix the gimbal poiting to an absolute direction
)

func (GimbalMode) Descriptor

func (GimbalMode) Descriptor() protoreflect.EnumDescriptor

func (GimbalMode) Enum

func (x GimbalMode) Enum() *GimbalMode

func (GimbalMode) EnumDescriptor deprecated

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

Deprecated: Use GimbalMode.Descriptor instead.

func (GimbalMode) Number

func (x GimbalMode) Number() protoreflect.EnumNumber

func (GimbalMode) String

func (x GimbalMode) String() string

func (GimbalMode) Type

type GimbalResult

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

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

Deprecated: Use GimbalResult.ProtoReflect.Descriptor instead.

func (*GimbalResult) GetResult

func (x *GimbalResult) GetResult() GimbalResult_Result

func (*GimbalResult) GetResultStr

func (x *GimbalResult) GetResultStr() string

func (*GimbalResult) ProtoMessage

func (*GimbalResult) ProtoMessage()

func (*GimbalResult) ProtoReflect

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

func (*GimbalResult) Reset

func (x *GimbalResult) Reset()

func (*GimbalResult) String

func (x *GimbalResult) String() string

type GimbalResult_Result

type GimbalResult_Result int32

Possible results returned for gimbal commands.

const (
	GimbalResult_RESULT_UNKNOWN     GimbalResult_Result = 0 // Unknown result
	GimbalResult_RESULT_SUCCESS     GimbalResult_Result = 1 // Command was accepted
	GimbalResult_RESULT_ERROR       GimbalResult_Result = 2 // Error occurred sending the command
	GimbalResult_RESULT_TIMEOUT     GimbalResult_Result = 3 // Command timed out
	GimbalResult_RESULT_UNSUPPORTED GimbalResult_Result = 4 // Functionality not supported
	GimbalResult_RESULT_NO_SYSTEM   GimbalResult_Result = 5 // No system connected
)

func (GimbalResult_Result) Descriptor

func (GimbalResult_Result) Enum

func (GimbalResult_Result) EnumDescriptor deprecated

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

Deprecated: Use GimbalResult_Result.Descriptor instead.

func (GimbalResult_Result) Number

func (GimbalResult_Result) String

func (x GimbalResult_Result) String() string

func (GimbalResult_Result) Type

type GimbalServiceClient

type GimbalServiceClient interface {
	// Set gimbal pitch and yaw angles.
	//
	// This sets the desired pitch and yaw angles of a gimbal.
	// Will return when the command is accepted, however, it might
	// take the gimbal longer to actually be set to the new angles.
	SetPitchAndYaw(ctx context.Context, in *SetPitchAndYawRequest, opts ...grpc.CallOption) (*SetPitchAndYawResponse, error)
	// Set gimbal angular rates around pitch and yaw axes.
	//
	// This sets the desired angular rates around pitch and yaw axes of a gimbal.
	// Will return when the command is accepted, however, it might
	// take the gimbal longer to actually reach the angular rate.
	SetPitchRateAndYawRate(ctx context.Context, in *SetPitchRateAndYawRateRequest, opts ...grpc.CallOption) (*SetPitchRateAndYawRateResponse, error)
	// Set gimbal mode.
	//
	// This sets the desired yaw mode of a gimbal.
	// Will return when the command is accepted. However, it might
	// take the gimbal longer to actually be set to the new angles.
	SetMode(ctx context.Context, in *SetModeRequest, opts ...grpc.CallOption) (*SetModeResponse, error)
	// Set gimbal region of interest (ROI).
	//
	// This sets a region of interest that the gimbal will point to.
	// The gimbal will continue to point to the specified region until it
	// receives a new command.
	// The function will return when the command is accepted, however, it might
	// take the gimbal longer to actually rotate to the ROI.
	SetRoiLocation(ctx context.Context, in *SetRoiLocationRequest, opts ...grpc.CallOption) (*SetRoiLocationResponse, error)
	// Take control.
	//
	// There can be only two components in control of a gimbal at any given time.
	// One with "primary" control, and one with "secondary" control. The way the
	// secondary control is implemented is not specified and hence depends on the
	// vehicle.
	//
	// Components are expected to be cooperative, which means that they can
	// override each other and should therefore do it carefully.
	TakeControl(ctx context.Context, in *TakeControlRequest, opts ...grpc.CallOption) (*TakeControlResponse, error)
	// Release control.
	//
	// Release control, such that other components can control the gimbal.
	ReleaseControl(ctx context.Context, in *ReleaseControlRequest, opts ...grpc.CallOption) (*ReleaseControlResponse, error)
	// Subscribe to control status updates.
	//
	// This allows a component to know if it has primary, secondary or
	// no control over the gimbal. Also, it gives the system and component ids
	// of the other components in control (if any).
	SubscribeControl(ctx context.Context, in *SubscribeControlRequest, opts ...grpc.CallOption) (GimbalService_SubscribeControlClient, error)
}

GimbalServiceClient is the client API for GimbalService 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 GimbalServiceServer

type GimbalServiceServer interface {
	// Set gimbal pitch and yaw angles.
	//
	// This sets the desired pitch and yaw angles of a gimbal.
	// Will return when the command is accepted, however, it might
	// take the gimbal longer to actually be set to the new angles.
	SetPitchAndYaw(context.Context, *SetPitchAndYawRequest) (*SetPitchAndYawResponse, error)
	// Set gimbal angular rates around pitch and yaw axes.
	//
	// This sets the desired angular rates around pitch and yaw axes of a gimbal.
	// Will return when the command is accepted, however, it might
	// take the gimbal longer to actually reach the angular rate.
	SetPitchRateAndYawRate(context.Context, *SetPitchRateAndYawRateRequest) (*SetPitchRateAndYawRateResponse, error)
	// Set gimbal mode.
	//
	// This sets the desired yaw mode of a gimbal.
	// Will return when the command is accepted. However, it might
	// take the gimbal longer to actually be set to the new angles.
	SetMode(context.Context, *SetModeRequest) (*SetModeResponse, error)
	// Set gimbal region of interest (ROI).
	//
	// This sets a region of interest that the gimbal will point to.
	// The gimbal will continue to point to the specified region until it
	// receives a new command.
	// The function will return when the command is accepted, however, it might
	// take the gimbal longer to actually rotate to the ROI.
	SetRoiLocation(context.Context, *SetRoiLocationRequest) (*SetRoiLocationResponse, error)
	// Take control.
	//
	// There can be only two components in control of a gimbal at any given time.
	// One with "primary" control, and one with "secondary" control. The way the
	// secondary control is implemented is not specified and hence depends on the
	// vehicle.
	//
	// Components are expected to be cooperative, which means that they can
	// override each other and should therefore do it carefully.
	TakeControl(context.Context, *TakeControlRequest) (*TakeControlResponse, error)
	// Release control.
	//
	// Release control, such that other components can control the gimbal.
	ReleaseControl(context.Context, *ReleaseControlRequest) (*ReleaseControlResponse, error)
	// Subscribe to control status updates.
	//
	// This allows a component to know if it has primary, secondary or
	// no control over the gimbal. Also, it gives the system and component ids
	// of the other components in control (if any).
	SubscribeControl(*SubscribeControlRequest, GimbalService_SubscribeControlServer) error
	// contains filtered or unexported methods
}

GimbalServiceServer is the server API for GimbalService service. All implementations must embed UnimplementedGimbalServiceServer for forward compatibility

type GimbalService_SubscribeControlClient

type GimbalService_SubscribeControlClient interface {
	Recv() (*ControlResponse, error)
	grpc.ClientStream
}

type GimbalService_SubscribeControlServer

type GimbalService_SubscribeControlServer interface {
	Send(*ControlResponse) error
	grpc.ServerStream
}

type ReleaseControlRequest

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

func (*ReleaseControlRequest) Descriptor deprecated

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

Deprecated: Use ReleaseControlRequest.ProtoReflect.Descriptor instead.

func (*ReleaseControlRequest) ProtoMessage

func (*ReleaseControlRequest) ProtoMessage()

func (*ReleaseControlRequest) ProtoReflect

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

func (*ReleaseControlRequest) Reset

func (x *ReleaseControlRequest) Reset()

func (*ReleaseControlRequest) String

func (x *ReleaseControlRequest) String() string

type ReleaseControlResponse

type ReleaseControlResponse struct {
	GimbalResult *GimbalResult `protobuf:"bytes,1,opt,name=gimbal_result,json=gimbalResult,proto3" json:"gimbal_result,omitempty"`
	// contains filtered or unexported fields
}

func (*ReleaseControlResponse) Descriptor deprecated

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

Deprecated: Use ReleaseControlResponse.ProtoReflect.Descriptor instead.

func (*ReleaseControlResponse) GetGimbalResult

func (x *ReleaseControlResponse) GetGimbalResult() *GimbalResult

func (*ReleaseControlResponse) ProtoMessage

func (*ReleaseControlResponse) ProtoMessage()

func (*ReleaseControlResponse) ProtoReflect

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

func (*ReleaseControlResponse) Reset

func (x *ReleaseControlResponse) Reset()

func (*ReleaseControlResponse) String

func (x *ReleaseControlResponse) String() string

type ServiceImpl

type ServiceImpl struct {
	Client GimbalServiceClient
}

func (*ServiceImpl) Control

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

func (*ServiceImpl) ReleaseControl

func (s *ServiceImpl) ReleaseControl(ctx context.Context) (*ReleaseControlResponse, error)

func (*ServiceImpl) SetMode

func (s *ServiceImpl) SetMode(ctx context.Context, gimbalMode *GimbalMode) (*SetModeResponse, error)

func (*ServiceImpl) SetPitchAndYaw

func (s *ServiceImpl) SetPitchAndYaw(ctx context.Context, pitchDeg float32, yawDeg float32) (*SetPitchAndYawResponse, error)

func (*ServiceImpl) SetPitchRateAndYawRate

func (s *ServiceImpl) SetPitchRateAndYawRate(ctx context.Context, pitchRateDegS float32, yawRateDegS float32) (*SetPitchRateAndYawRateResponse, error)

func (*ServiceImpl) SetRoiLocation

func (s *ServiceImpl) SetRoiLocation(ctx context.Context, latitudeDeg float64, longitudeDeg float64, altitudeM float32) (*SetRoiLocationResponse, error)

func (*ServiceImpl) TakeControl

func (s *ServiceImpl) TakeControl(ctx context.Context, controlMode *ControlMode) (*TakeControlResponse, error)

type SetModeRequest

type SetModeRequest struct {
	GimbalMode GimbalMode `` // The mode to be set.
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SetModeRequest) Descriptor deprecated

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

Deprecated: Use SetModeRequest.ProtoReflect.Descriptor instead.

func (*SetModeRequest) GetGimbalMode

func (x *SetModeRequest) GetGimbalMode() GimbalMode

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

func (*SetModeResponse) Descriptor deprecated

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

Deprecated: Use SetModeResponse.ProtoReflect.Descriptor instead.

func (*SetModeResponse) GetGimbalResult

func (x *SetModeResponse) GetGimbalResult() *GimbalResult

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 SetPitchAndYawRequest

type SetPitchAndYawRequest struct {
	PitchDeg float32 `protobuf:"fixed32,1,opt,name=pitch_deg,json=pitchDeg,proto3" json:"pitch_deg,omitempty"` // Pitch angle in degrees (negative points down)
	YawDeg   float32 `protobuf:"fixed32,2,opt,name=yaw_deg,json=yawDeg,proto3" json:"yaw_deg,omitempty"`       // Yaw angle in degrees (positive is clock-wise, range: -180 to 180 or 0 to 360)
	// contains filtered or unexported fields
}

func (*SetPitchAndYawRequest) Descriptor deprecated

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

Deprecated: Use SetPitchAndYawRequest.ProtoReflect.Descriptor instead.

func (*SetPitchAndYawRequest) GetPitchDeg

func (x *SetPitchAndYawRequest) GetPitchDeg() float32

func (*SetPitchAndYawRequest) GetYawDeg

func (x *SetPitchAndYawRequest) GetYawDeg() float32

func (*SetPitchAndYawRequest) ProtoMessage

func (*SetPitchAndYawRequest) ProtoMessage()

func (*SetPitchAndYawRequest) ProtoReflect

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

func (*SetPitchAndYawRequest) Reset

func (x *SetPitchAndYawRequest) Reset()

func (*SetPitchAndYawRequest) String

func (x *SetPitchAndYawRequest) String() string

type SetPitchAndYawResponse

type SetPitchAndYawResponse struct {
	GimbalResult *GimbalResult `protobuf:"bytes,1,opt,name=gimbal_result,json=gimbalResult,proto3" json:"gimbal_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPitchAndYawResponse) Descriptor deprecated

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

Deprecated: Use SetPitchAndYawResponse.ProtoReflect.Descriptor instead.

func (*SetPitchAndYawResponse) GetGimbalResult

func (x *SetPitchAndYawResponse) GetGimbalResult() *GimbalResult

func (*SetPitchAndYawResponse) ProtoMessage

func (*SetPitchAndYawResponse) ProtoMessage()

func (*SetPitchAndYawResponse) ProtoReflect

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

func (*SetPitchAndYawResponse) Reset

func (x *SetPitchAndYawResponse) Reset()

func (*SetPitchAndYawResponse) String

func (x *SetPitchAndYawResponse) String() string

type SetPitchRateAndYawRateRequest

type SetPitchRateAndYawRateRequest struct {
	PitchRateDegS float32 `protobuf:"fixed32,1,opt,name=pitch_rate_deg_s,json=pitchRateDegS,proto3" json:"pitch_rate_deg_s,omitempty"` // Angular rate around pitch axis in degrees/second (negative downward)
	YawRateDegS   float32 `protobuf:"fixed32,2,opt,name=yaw_rate_deg_s,json=yawRateDegS,proto3" json:"yaw_rate_deg_s,omitempty"`       // Angular rate around yaw axis in degrees/second (positive is clock-wise)
	// contains filtered or unexported fields
}

func (*SetPitchRateAndYawRateRequest) Descriptor deprecated

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

Deprecated: Use SetPitchRateAndYawRateRequest.ProtoReflect.Descriptor instead.

func (*SetPitchRateAndYawRateRequest) GetPitchRateDegS

func (x *SetPitchRateAndYawRateRequest) GetPitchRateDegS() float32

func (*SetPitchRateAndYawRateRequest) GetYawRateDegS

func (x *SetPitchRateAndYawRateRequest) GetYawRateDegS() float32

func (*SetPitchRateAndYawRateRequest) ProtoMessage

func (*SetPitchRateAndYawRateRequest) ProtoMessage()

func (*SetPitchRateAndYawRateRequest) ProtoReflect

func (*SetPitchRateAndYawRateRequest) Reset

func (x *SetPitchRateAndYawRateRequest) Reset()

func (*SetPitchRateAndYawRateRequest) String

type SetPitchRateAndYawRateResponse

type SetPitchRateAndYawRateResponse struct {
	GimbalResult *GimbalResult `protobuf:"bytes,1,opt,name=gimbal_result,json=gimbalResult,proto3" json:"gimbal_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPitchRateAndYawRateResponse) Descriptor deprecated

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

Deprecated: Use SetPitchRateAndYawRateResponse.ProtoReflect.Descriptor instead.

func (*SetPitchRateAndYawRateResponse) GetGimbalResult

func (x *SetPitchRateAndYawRateResponse) GetGimbalResult() *GimbalResult

func (*SetPitchRateAndYawRateResponse) ProtoMessage

func (*SetPitchRateAndYawRateResponse) ProtoMessage()

func (*SetPitchRateAndYawRateResponse) ProtoReflect

func (*SetPitchRateAndYawRateResponse) Reset

func (x *SetPitchRateAndYawRateResponse) Reset()

func (*SetPitchRateAndYawRateResponse) String

type SetRoiLocationRequest

type SetRoiLocationRequest struct {
	LatitudeDeg  float64 `protobuf:"fixed64,1,opt,name=latitude_deg,json=latitudeDeg,proto3" json:"latitude_deg,omitempty"`    // Latitude in degrees
	LongitudeDeg float64 `protobuf:"fixed64,2,opt,name=longitude_deg,json=longitudeDeg,proto3" json:"longitude_deg,omitempty"` // Longitude in degrees
	AltitudeM    float32 `protobuf:"fixed32,3,opt,name=altitude_m,json=altitudeM,proto3" json:"altitude_m,omitempty"`          // Altitude in metres (AMSL)
	// contains filtered or unexported fields
}

func (*SetRoiLocationRequest) Descriptor deprecated

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

Deprecated: Use SetRoiLocationRequest.ProtoReflect.Descriptor instead.

func (*SetRoiLocationRequest) GetAltitudeM

func (x *SetRoiLocationRequest) GetAltitudeM() float32

func (*SetRoiLocationRequest) GetLatitudeDeg

func (x *SetRoiLocationRequest) GetLatitudeDeg() float64

func (*SetRoiLocationRequest) GetLongitudeDeg

func (x *SetRoiLocationRequest) GetLongitudeDeg() float64

func (*SetRoiLocationRequest) ProtoMessage

func (*SetRoiLocationRequest) ProtoMessage()

func (*SetRoiLocationRequest) ProtoReflect

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

func (*SetRoiLocationRequest) Reset

func (x *SetRoiLocationRequest) Reset()

func (*SetRoiLocationRequest) String

func (x *SetRoiLocationRequest) String() string

type SetRoiLocationResponse

type SetRoiLocationResponse struct {
	GimbalResult *GimbalResult `protobuf:"bytes,1,opt,name=gimbal_result,json=gimbalResult,proto3" json:"gimbal_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetRoiLocationResponse) Descriptor deprecated

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

Deprecated: Use SetRoiLocationResponse.ProtoReflect.Descriptor instead.

func (*SetRoiLocationResponse) GetGimbalResult

func (x *SetRoiLocationResponse) GetGimbalResult() *GimbalResult

func (*SetRoiLocationResponse) ProtoMessage

func (*SetRoiLocationResponse) ProtoMessage()

func (*SetRoiLocationResponse) ProtoReflect

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

func (*SetRoiLocationResponse) Reset

func (x *SetRoiLocationResponse) Reset()

func (*SetRoiLocationResponse) String

func (x *SetRoiLocationResponse) String() string

type SubscribeControlRequest

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

func (*SubscribeControlRequest) Descriptor deprecated

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

Deprecated: Use SubscribeControlRequest.ProtoReflect.Descriptor instead.

func (*SubscribeControlRequest) ProtoMessage

func (*SubscribeControlRequest) ProtoMessage()

func (*SubscribeControlRequest) ProtoReflect

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

func (*SubscribeControlRequest) Reset

func (x *SubscribeControlRequest) Reset()

func (*SubscribeControlRequest) String

func (x *SubscribeControlRequest) String() string

type TakeControlRequest

type TakeControlRequest struct {
	ControlMode ControlMode `` // Control mode (primary or secondary)
	/* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TakeControlRequest) Descriptor deprecated

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

Deprecated: Use TakeControlRequest.ProtoReflect.Descriptor instead.

func (*TakeControlRequest) GetControlMode

func (x *TakeControlRequest) GetControlMode() ControlMode

func (*TakeControlRequest) ProtoMessage

func (*TakeControlRequest) ProtoMessage()

func (*TakeControlRequest) ProtoReflect

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

func (*TakeControlRequest) Reset

func (x *TakeControlRequest) Reset()

func (*TakeControlRequest) String

func (x *TakeControlRequest) String() string

type TakeControlResponse

type TakeControlResponse struct {
	GimbalResult *GimbalResult `protobuf:"bytes,1,opt,name=gimbal_result,json=gimbalResult,proto3" json:"gimbal_result,omitempty"`
	// contains filtered or unexported fields
}

func (*TakeControlResponse) Descriptor deprecated

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

Deprecated: Use TakeControlResponse.ProtoReflect.Descriptor instead.

func (*TakeControlResponse) GetGimbalResult

func (x *TakeControlResponse) GetGimbalResult() *GimbalResult

func (*TakeControlResponse) ProtoMessage

func (*TakeControlResponse) ProtoMessage()

func (*TakeControlResponse) ProtoReflect

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

func (*TakeControlResponse) Reset

func (x *TakeControlResponse) Reset()

func (*TakeControlResponse) String

func (x *TakeControlResponse) String() string

type UnimplementedGimbalServiceServer

type UnimplementedGimbalServiceServer struct {
}

UnimplementedGimbalServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGimbalServiceServer) ReleaseControl

func (UnimplementedGimbalServiceServer) SetMode

func (UnimplementedGimbalServiceServer) SetPitchAndYaw

func (UnimplementedGimbalServiceServer) SetRoiLocation

func (UnimplementedGimbalServiceServer) TakeControl

type UnsafeGimbalServiceServer

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

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

Jump to

Keyboard shortcuts

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