Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterGimbalServiceServer(s grpc.ServiceRegistrar, srv GimbalServiceServer)
- type AngularVelocityBody
- func (*AngularVelocityBody) Descriptor() ([]byte, []int)deprecated
- func (x *AngularVelocityBody) GetPitchRadS() float32
- func (x *AngularVelocityBody) GetRollRadS() float32
- func (x *AngularVelocityBody) GetYawRadS() float32
- func (*AngularVelocityBody) ProtoMessage()
- func (x *AngularVelocityBody) ProtoReflect() protoreflect.Message
- func (x *AngularVelocityBody) Reset()
- func (x *AngularVelocityBody) String() string
- type Attitude
- func (*Attitude) Descriptor() ([]byte, []int)deprecated
- func (x *Attitude) GetAngularVelocity() *AngularVelocityBody
- func (x *Attitude) GetEulerAngleForward() *EulerAngle
- func (x *Attitude) GetEulerAngleNorth() *EulerAngle
- func (x *Attitude) GetQuaternionForward() *Quaternion
- func (x *Attitude) GetQuaternionNorth() *Quaternion
- func (x *Attitude) GetTimestampUs() uint64
- func (*Attitude) ProtoMessage()
- func (x *Attitude) ProtoReflect() protoreflect.Message
- func (x *Attitude) Reset()
- func (x *Attitude) String() string
- type AttitudeResponse
- type ControlMode
- func (ControlMode) Descriptor() protoreflect.EnumDescriptor
- func (x ControlMode) Enum() *ControlMode
- func (ControlMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ControlMode) Number() protoreflect.EnumNumber
- func (x ControlMode) String() string
- func (ControlMode) Type() protoreflect.EnumType
- type ControlResponse
- type ControlStatus
- func (*ControlStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ControlStatus) GetCompidPrimaryControl() int32
- func (x *ControlStatus) GetCompidSecondaryControl() int32
- func (x *ControlStatus) GetControlMode() ControlMode
- func (x *ControlStatus) GetSysidPrimaryControl() int32
- func (x *ControlStatus) GetSysidSecondaryControl() int32
- func (*ControlStatus) ProtoMessage()
- func (x *ControlStatus) ProtoReflect() protoreflect.Message
- func (x *ControlStatus) Reset()
- func (x *ControlStatus) String() string
- type EulerAngle
- func (*EulerAngle) Descriptor() ([]byte, []int)deprecated
- func (x *EulerAngle) GetPitchDeg() float32
- func (x *EulerAngle) GetRollDeg() float32
- func (x *EulerAngle) GetYawDeg() float32
- func (*EulerAngle) ProtoMessage()
- func (x *EulerAngle) ProtoReflect() protoreflect.Message
- func (x *EulerAngle) Reset()
- func (x *EulerAngle) String() string
- type GimbalMode
- type GimbalResult
- func (*GimbalResult) Descriptor() ([]byte, []int)deprecated
- func (x *GimbalResult) GetResult() GimbalResult_Result
- func (x *GimbalResult) GetResultStr() string
- func (*GimbalResult) ProtoMessage()
- func (x *GimbalResult) ProtoReflect() protoreflect.Message
- func (x *GimbalResult) Reset()
- func (x *GimbalResult) String() string
- type GimbalResult_Result
- func (GimbalResult_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GimbalResult_Result) Enum() *GimbalResult_Result
- func (GimbalResult_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GimbalResult_Result) Number() protoreflect.EnumNumber
- func (x GimbalResult_Result) String() string
- func (GimbalResult_Result) Type() protoreflect.EnumType
- type GimbalServiceClient
- type GimbalServiceServer
- type GimbalService_SubscribeAttitudeClient
- type GimbalService_SubscribeAttitudeServer
- type GimbalService_SubscribeControlClient
- type GimbalService_SubscribeControlServer
- type Quaternion
- func (*Quaternion) Descriptor() ([]byte, []int)deprecated
- func (x *Quaternion) GetW() float32
- func (x *Quaternion) GetX() float32
- func (x *Quaternion) GetY() float32
- func (x *Quaternion) GetZ() float32
- func (*Quaternion) ProtoMessage()
- func (x *Quaternion) ProtoReflect() protoreflect.Message
- func (x *Quaternion) Reset()
- func (x *Quaternion) String() string
- type ReleaseControlRequest
- type ReleaseControlResponse
- func (*ReleaseControlResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReleaseControlResponse) GetGimbalResult() *GimbalResult
- func (*ReleaseControlResponse) ProtoMessage()
- func (x *ReleaseControlResponse) ProtoReflect() protoreflect.Message
- func (x *ReleaseControlResponse) Reset()
- func (x *ReleaseControlResponse) String() string
- type ServiceImpl
- func (a *ServiceImpl) Attitude(ctx context.Context) (<-chan *Attitude, error)
- func (a *ServiceImpl) Control(ctx context.Context) (<-chan *ControlStatus, error)
- func (s *ServiceImpl) ReleaseControl(ctx context.Context) (*ReleaseControlResponse, error)
- func (s *ServiceImpl) SetAngles(ctx context.Context, rollDeg float32, pitchDeg float32, yawDeg float32) (*SetAnglesResponse, error)
- func (s *ServiceImpl) SetMode(ctx context.Context, gimbalMode *GimbalMode) (*SetModeResponse, error)
- func (s *ServiceImpl) SetPitchAndYaw(ctx context.Context, pitchDeg float32, yawDeg float32) (*SetPitchAndYawResponse, error)
- func (s *ServiceImpl) SetPitchRateAndYawRate(ctx context.Context, pitchRateDegS float32, yawRateDegS float32) (*SetPitchRateAndYawRateResponse, error)
- func (s *ServiceImpl) SetRoiLocation(ctx context.Context, latitudeDeg float64, longitudeDeg float64, ...) (*SetRoiLocationResponse, error)
- func (s *ServiceImpl) TakeControl(ctx context.Context, controlMode *ControlMode) (*TakeControlResponse, error)
- type SetAnglesRequest
- func (*SetAnglesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetAnglesRequest) GetPitchDeg() float32
- func (x *SetAnglesRequest) GetRollDeg() float32
- func (x *SetAnglesRequest) GetYawDeg() float32
- func (*SetAnglesRequest) ProtoMessage()
- func (x *SetAnglesRequest) ProtoReflect() protoreflect.Message
- func (x *SetAnglesRequest) Reset()
- func (x *SetAnglesRequest) String() string
- type SetAnglesResponse
- func (*SetAnglesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetAnglesResponse) GetGimbalResult() *GimbalResult
- func (*SetAnglesResponse) ProtoMessage()
- func (x *SetAnglesResponse) ProtoReflect() protoreflect.Message
- func (x *SetAnglesResponse) Reset()
- func (x *SetAnglesResponse) String() string
- type SetModeRequest
- type SetModeResponse
- type SetPitchAndYawRequest
- func (*SetPitchAndYawRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetPitchAndYawRequest) GetPitchDeg() float32
- func (x *SetPitchAndYawRequest) GetYawDeg() float32
- func (*SetPitchAndYawRequest) ProtoMessage()
- func (x *SetPitchAndYawRequest) ProtoReflect() protoreflect.Message
- func (x *SetPitchAndYawRequest) Reset()
- func (x *SetPitchAndYawRequest) String() string
- type SetPitchAndYawResponse
- func (*SetPitchAndYawResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetPitchAndYawResponse) GetGimbalResult() *GimbalResult
- func (*SetPitchAndYawResponse) ProtoMessage()
- func (x *SetPitchAndYawResponse) ProtoReflect() protoreflect.Message
- func (x *SetPitchAndYawResponse) Reset()
- func (x *SetPitchAndYawResponse) String() string
- type SetPitchRateAndYawRateRequest
- func (*SetPitchRateAndYawRateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetPitchRateAndYawRateRequest) GetPitchRateDegS() float32
- func (x *SetPitchRateAndYawRateRequest) GetYawRateDegS() float32
- func (*SetPitchRateAndYawRateRequest) ProtoMessage()
- func (x *SetPitchRateAndYawRateRequest) ProtoReflect() protoreflect.Message
- func (x *SetPitchRateAndYawRateRequest) Reset()
- func (x *SetPitchRateAndYawRateRequest) String() string
- type SetPitchRateAndYawRateResponse
- func (*SetPitchRateAndYawRateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetPitchRateAndYawRateResponse) GetGimbalResult() *GimbalResult
- func (*SetPitchRateAndYawRateResponse) ProtoMessage()
- func (x *SetPitchRateAndYawRateResponse) ProtoReflect() protoreflect.Message
- func (x *SetPitchRateAndYawRateResponse) Reset()
- func (x *SetPitchRateAndYawRateResponse) String() string
- type SetRoiLocationRequest
- func (*SetRoiLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetRoiLocationRequest) GetAltitudeM() float32
- func (x *SetRoiLocationRequest) GetLatitudeDeg() float64
- func (x *SetRoiLocationRequest) GetLongitudeDeg() float64
- func (*SetRoiLocationRequest) ProtoMessage()
- func (x *SetRoiLocationRequest) ProtoReflect() protoreflect.Message
- func (x *SetRoiLocationRequest) Reset()
- func (x *SetRoiLocationRequest) String() string
- type SetRoiLocationResponse
- func (*SetRoiLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetRoiLocationResponse) GetGimbalResult() *GimbalResult
- func (*SetRoiLocationResponse) ProtoMessage()
- func (x *SetRoiLocationResponse) ProtoReflect() protoreflect.Message
- func (x *SetRoiLocationResponse) Reset()
- func (x *SetRoiLocationResponse) String() string
- type SubscribeAttitudeRequest
- type SubscribeControlRequest
- type TakeControlRequest
- func (*TakeControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TakeControlRequest) GetControlMode() ControlMode
- func (*TakeControlRequest) ProtoMessage()
- func (x *TakeControlRequest) ProtoReflect() protoreflect.Message
- func (x *TakeControlRequest) Reset()
- func (x *TakeControlRequest) String() string
- type TakeControlResponse
- func (*TakeControlResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TakeControlResponse) GetGimbalResult() *GimbalResult
- func (*TakeControlResponse) ProtoMessage()
- func (x *TakeControlResponse) ProtoReflect() protoreflect.Message
- func (x *TakeControlResponse) Reset()
- func (x *TakeControlResponse) String() string
- type UnimplementedGimbalServiceServer
- func (UnimplementedGimbalServiceServer) ReleaseControl(context.Context, *ReleaseControlRequest) (*ReleaseControlResponse, error)
- func (UnimplementedGimbalServiceServer) SetAngles(context.Context, *SetAnglesRequest) (*SetAnglesResponse, error)
- func (UnimplementedGimbalServiceServer) SetMode(context.Context, *SetModeRequest) (*SetModeResponse, error)
- func (UnimplementedGimbalServiceServer) SetPitchAndYaw(context.Context, *SetPitchAndYawRequest) (*SetPitchAndYawResponse, error)
- func (UnimplementedGimbalServiceServer) SetPitchRateAndYawRate(context.Context, *SetPitchRateAndYawRateRequest) (*SetPitchRateAndYawRateResponse, error)
- func (UnimplementedGimbalServiceServer) SetRoiLocation(context.Context, *SetRoiLocationRequest) (*SetRoiLocationResponse, error)
- func (UnimplementedGimbalServiceServer) SubscribeAttitude(*SubscribeAttitudeRequest, grpc.ServerStreamingServer[AttitudeResponse]) error
- func (UnimplementedGimbalServiceServer) SubscribeControl(*SubscribeControlRequest, grpc.ServerStreamingServer[ControlResponse]) error
- func (UnimplementedGimbalServiceServer) TakeControl(context.Context, *TakeControlRequest) (*TakeControlResponse, error)
- type UnsafeGimbalServiceServer
Constants ¶
const ( GimbalService_SetAngles_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/SetAngles" GimbalService_SetPitchAndYaw_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/SetPitchAndYaw" GimbalService_SetPitchRateAndYawRate_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/SetPitchRateAndYawRate" GimbalService_SetMode_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/SetMode" GimbalService_SetRoiLocation_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/SetRoiLocation" GimbalService_TakeControl_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/TakeControl" GimbalService_ReleaseControl_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/ReleaseControl" GimbalService_SubscribeControl_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/SubscribeControl" GimbalService_SubscribeAttitude_FullMethodName = "/mavsdk.rpc.gimbal.GimbalService/SubscribeAttitude" )
Variables ¶
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.
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.
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.
var File_gimbal_proto protoreflect.FileDescriptor
var GimbalService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mavsdk.rpc.gimbal.GimbalService", HandlerType: (*GimbalServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetAngles", Handler: _GimbalService_SetAngles_Handler, }, { 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, }, { StreamName: "SubscribeAttitude", Handler: _GimbalService_SubscribeAttitude_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 AngularVelocityBody ¶ added in v0.0.8
type AngularVelocityBody struct { RollRadS float32 `protobuf:"fixed32,1,opt,name=roll_rad_s,json=rollRadS,proto3" json:"roll_rad_s,omitempty"` // Roll angular velocity PitchRadS float32 `protobuf:"fixed32,2,opt,name=pitch_rad_s,json=pitchRadS,proto3" json:"pitch_rad_s,omitempty"` // Pitch angular velocity YawRadS float32 `protobuf:"fixed32,3,opt,name=yaw_rad_s,json=yawRadS,proto3" json:"yaw_rad_s,omitempty"` // Yaw angular velocity // contains filtered or unexported fields }
Gimbal angular rate type
func (*AngularVelocityBody) Descriptor
deprecated
added in
v0.0.8
func (*AngularVelocityBody) Descriptor() ([]byte, []int)
Deprecated: Use AngularVelocityBody.ProtoReflect.Descriptor instead.
func (*AngularVelocityBody) GetPitchRadS ¶ added in v0.0.8
func (x *AngularVelocityBody) GetPitchRadS() float32
func (*AngularVelocityBody) GetRollRadS ¶ added in v0.0.8
func (x *AngularVelocityBody) GetRollRadS() float32
func (*AngularVelocityBody) GetYawRadS ¶ added in v0.0.8
func (x *AngularVelocityBody) GetYawRadS() float32
func (*AngularVelocityBody) ProtoMessage ¶ added in v0.0.8
func (*AngularVelocityBody) ProtoMessage()
func (*AngularVelocityBody) ProtoReflect ¶ added in v0.0.8
func (x *AngularVelocityBody) ProtoReflect() protoreflect.Message
func (*AngularVelocityBody) Reset ¶ added in v0.0.8
func (x *AngularVelocityBody) Reset()
func (*AngularVelocityBody) String ¶ added in v0.0.8
func (x *AngularVelocityBody) String() string
type Attitude ¶ added in v0.0.8
type Attitude struct { EulerAngleForward *EulerAngle `protobuf:"bytes,1,opt,name=euler_angle_forward,json=eulerAngleForward,proto3" json:"euler_angle_forward,omitempty"` // Euler angle relative to forward QuaternionForward *Quaternion `protobuf:"bytes,2,opt,name=quaternion_forward,json=quaternionForward,proto3" json:"quaternion_forward,omitempty"` // Quaternion relative to forward EulerAngleNorth *EulerAngle `protobuf:"bytes,3,opt,name=euler_angle_north,json=eulerAngleNorth,proto3" json:"euler_angle_north,omitempty"` // Euler angle relative to North QuaternionNorth *Quaternion `protobuf:"bytes,4,opt,name=quaternion_north,json=quaternionNorth,proto3" json:"quaternion_north,omitempty"` // Quaternion relative to North AngularVelocity *AngularVelocityBody `protobuf:"bytes,5,opt,name=angular_velocity,json=angularVelocity,proto3" json:"angular_velocity,omitempty"` // The angular rate TimestampUs uint64 `protobuf:"varint,6,opt,name=timestamp_us,json=timestampUs,proto3" json:"timestamp_us,omitempty"` // Timestamp in microseconds // contains filtered or unexported fields }
Gimbal attitude type
func (*Attitude) Descriptor
deprecated
added in
v0.0.8
func (*Attitude) GetAngularVelocity ¶ added in v0.0.8
func (x *Attitude) GetAngularVelocity() *AngularVelocityBody
func (*Attitude) GetEulerAngleForward ¶ added in v0.0.8
func (x *Attitude) GetEulerAngleForward() *EulerAngle
func (*Attitude) GetEulerAngleNorth ¶ added in v0.0.8
func (x *Attitude) GetEulerAngleNorth() *EulerAngle
func (*Attitude) GetQuaternionForward ¶ added in v0.0.8
func (x *Attitude) GetQuaternionForward() *Quaternion
func (*Attitude) GetQuaternionNorth ¶ added in v0.0.8
func (x *Attitude) GetQuaternionNorth() *Quaternion
func (*Attitude) GetTimestampUs ¶ added in v0.0.8
func (*Attitude) ProtoMessage ¶ added in v0.0.8
func (*Attitude) ProtoMessage()
func (*Attitude) ProtoReflect ¶ added in v0.0.8
func (x *Attitude) ProtoReflect() protoreflect.Message
type AttitudeResponse ¶ added in v0.0.8
type AttitudeResponse struct { Attitude *Attitude `protobuf:"bytes,1,opt,name=attitude,proto3" json:"attitude,omitempty"` // The attitude // contains filtered or unexported fields }
func (*AttitudeResponse) Descriptor
deprecated
added in
v0.0.8
func (*AttitudeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AttitudeResponse.ProtoReflect.Descriptor instead.
func (*AttitudeResponse) GetAttitude ¶ added in v0.0.8
func (x *AttitudeResponse) GetAttitude() *Attitude
func (*AttitudeResponse) ProtoMessage ¶ added in v0.0.8
func (*AttitudeResponse) ProtoMessage()
func (*AttitudeResponse) ProtoReflect ¶ added in v0.0.8
func (x *AttitudeResponse) ProtoReflect() protoreflect.Message
func (*AttitudeResponse) Reset ¶ added in v0.0.8
func (x *AttitudeResponse) Reset()
func (*AttitudeResponse) String ¶ added in v0.0.8
func (x *AttitudeResponse) String() string
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (ControlMode) Type() protoreflect.EnumType
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 EulerAngle ¶ added in v0.0.8
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 are converted using the 3-1-2 sequence instead of standard 3-2-1 in order to avoid the gimbal lock at 90 degrees down.
For more info see https://en.wikipedia.org/wiki/Euler_angles
func (*EulerAngle) Descriptor
deprecated
added in
v0.0.8
func (*EulerAngle) Descriptor() ([]byte, []int)
Deprecated: Use EulerAngle.ProtoReflect.Descriptor instead.
func (*EulerAngle) GetPitchDeg ¶ added in v0.0.8
func (x *EulerAngle) GetPitchDeg() float32
func (*EulerAngle) GetRollDeg ¶ added in v0.0.8
func (x *EulerAngle) GetRollDeg() float32
func (*EulerAngle) GetYawDeg ¶ added in v0.0.8
func (x *EulerAngle) GetYawDeg() float32
func (*EulerAngle) ProtoMessage ¶ added in v0.0.8
func (*EulerAngle) ProtoMessage()
func (*EulerAngle) ProtoReflect ¶ added in v0.0.8
func (x *EulerAngle) ProtoReflect() protoreflect.Message
func (*EulerAngle) Reset ¶ added in v0.0.8
func (x *EulerAngle) Reset()
func (*EulerAngle) String ¶ added in v0.0.8
func (x *EulerAngle) 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 pointing 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 ¶
func (GimbalMode) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (GimbalResult_Result) Enum ¶
func (x GimbalResult_Result) Enum() *GimbalResult_Result
func (GimbalResult_Result) EnumDescriptor
deprecated
func (GimbalResult_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GimbalResult_Result.Descriptor instead.
func (GimbalResult_Result) Number ¶
func (x GimbalResult_Result) Number() protoreflect.EnumNumber
func (GimbalResult_Result) String ¶
func (x GimbalResult_Result) String() string
func (GimbalResult_Result) Type ¶
func (GimbalResult_Result) Type() protoreflect.EnumType
type GimbalServiceClient ¶
type GimbalServiceClient interface { // Set gimbal roll, pitch and yaw angles. // // This sets the desired roll, 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. SetAngles(ctx context.Context, in *SetAnglesRequest, opts ...grpc.CallOption) (*SetAnglesResponse, error) // 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) (grpc.ServerStreamingClient[ControlResponse], error) // Subscribe to attitude updates. // // This gets you the gimbal's attitude and angular rate. SubscribeAttitude(ctx context.Context, in *SubscribeAttitudeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[AttitudeResponse], 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.
Provide control over a gimbal.
func NewGimbalServiceClient ¶
func NewGimbalServiceClient(cc grpc.ClientConnInterface) GimbalServiceClient
type GimbalServiceServer ¶
type GimbalServiceServer interface { // Set gimbal roll, pitch and yaw angles. // // This sets the desired roll, 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. SetAngles(context.Context, *SetAnglesRequest) (*SetAnglesResponse, error) // 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, grpc.ServerStreamingServer[ControlResponse]) error // Subscribe to attitude updates. // // This gets you the gimbal's attitude and angular rate. SubscribeAttitude(*SubscribeAttitudeRequest, grpc.ServerStreamingServer[AttitudeResponse]) error // contains filtered or unexported methods }
GimbalServiceServer is the server API for GimbalService service. All implementations must embed UnimplementedGimbalServiceServer for forward compatibility.
Provide control over a gimbal.
type GimbalService_SubscribeAttitudeClient ¶ added in v0.0.8
type GimbalService_SubscribeAttitudeClient = grpc.ServerStreamingClient[AttitudeResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type GimbalService_SubscribeAttitudeServer ¶ added in v0.0.8
type GimbalService_SubscribeAttitudeServer = grpc.ServerStreamingServer[AttitudeResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type GimbalService_SubscribeControlClient ¶
type GimbalService_SubscribeControlClient = grpc.ServerStreamingClient[ControlResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type GimbalService_SubscribeControlServer ¶
type GimbalService_SubscribeControlServer = grpc.ServerStreamingServer[ControlResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Quaternion ¶ added in v0.0.8
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
added in
v0.0.8
func (*Quaternion) Descriptor() ([]byte, []int)
Deprecated: Use Quaternion.ProtoReflect.Descriptor instead.
func (*Quaternion) GetW ¶ added in v0.0.8
func (x *Quaternion) GetW() float32
func (*Quaternion) GetX ¶ added in v0.0.8
func (x *Quaternion) GetX() float32
func (*Quaternion) GetY ¶ added in v0.0.8
func (x *Quaternion) GetY() float32
func (*Quaternion) GetZ ¶ added in v0.0.8
func (x *Quaternion) GetZ() float32
func (*Quaternion) ProtoMessage ¶ added in v0.0.8
func (*Quaternion) ProtoMessage()
func (*Quaternion) ProtoReflect ¶ added in v0.0.8
func (x *Quaternion) ProtoReflect() protoreflect.Message
func (*Quaternion) Reset ¶ added in v0.0.8
func (x *Quaternion) Reset()
func (*Quaternion) String ¶ added in v0.0.8
func (x *Quaternion) String() string
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) Attitude ¶ added in v0.0.8
func (a *ServiceImpl) Attitude(ctx context.Context) (<-chan *Attitude, error)
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) SetAngles ¶ added in v0.0.8
func (s *ServiceImpl) SetAngles(ctx context.Context, rollDeg float32, pitchDeg float32, yawDeg float32) (*SetAnglesResponse, 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 SetAnglesRequest ¶ added in v0.0.8
type SetAnglesRequest struct { RollDeg float32 `protobuf:"fixed32,1,opt,name=roll_deg,json=rollDeg,proto3" json:"roll_deg,omitempty"` // Roll angle in degrees PitchDeg float32 `protobuf:"fixed32,2,opt,name=pitch_deg,json=pitchDeg,proto3" json:"pitch_deg,omitempty"` // Pitch angle in degrees (negative points down) YawDeg float32 `protobuf:"fixed32,3,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 (*SetAnglesRequest) Descriptor
deprecated
added in
v0.0.8
func (*SetAnglesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetAnglesRequest.ProtoReflect.Descriptor instead.
func (*SetAnglesRequest) GetPitchDeg ¶ added in v0.0.8
func (x *SetAnglesRequest) GetPitchDeg() float32
func (*SetAnglesRequest) GetRollDeg ¶ added in v0.0.8
func (x *SetAnglesRequest) GetRollDeg() float32
func (*SetAnglesRequest) GetYawDeg ¶ added in v0.0.8
func (x *SetAnglesRequest) GetYawDeg() float32
func (*SetAnglesRequest) ProtoMessage ¶ added in v0.0.8
func (*SetAnglesRequest) ProtoMessage()
func (*SetAnglesRequest) ProtoReflect ¶ added in v0.0.8
func (x *SetAnglesRequest) ProtoReflect() protoreflect.Message
func (*SetAnglesRequest) Reset ¶ added in v0.0.8
func (x *SetAnglesRequest) Reset()
func (*SetAnglesRequest) String ¶ added in v0.0.8
func (x *SetAnglesRequest) String() string
type SetAnglesResponse ¶ added in v0.0.8
type SetAnglesResponse struct { GimbalResult *GimbalResult `protobuf:"bytes,1,opt,name=gimbal_result,json=gimbalResult,proto3" json:"gimbal_result,omitempty"` // contains filtered or unexported fields }
func (*SetAnglesResponse) Descriptor
deprecated
added in
v0.0.8
func (*SetAnglesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetAnglesResponse.ProtoReflect.Descriptor instead.
func (*SetAnglesResponse) GetGimbalResult ¶ added in v0.0.8
func (x *SetAnglesResponse) GetGimbalResult() *GimbalResult
func (*SetAnglesResponse) ProtoMessage ¶ added in v0.0.8
func (*SetAnglesResponse) ProtoMessage()
func (*SetAnglesResponse) ProtoReflect ¶ added in v0.0.8
func (x *SetAnglesResponse) ProtoReflect() protoreflect.Message
func (*SetAnglesResponse) Reset ¶ added in v0.0.8
func (x *SetAnglesResponse) Reset()
func (*SetAnglesResponse) String ¶ added in v0.0.8
func (x *SetAnglesResponse) String() string
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 (x *SetPitchRateAndYawRateRequest) ProtoReflect() protoreflect.Message
func (*SetPitchRateAndYawRateRequest) Reset ¶
func (x *SetPitchRateAndYawRateRequest) Reset()
func (*SetPitchRateAndYawRateRequest) String ¶
func (x *SetPitchRateAndYawRateRequest) String() 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 (x *SetPitchRateAndYawRateResponse) ProtoReflect() protoreflect.Message
func (*SetPitchRateAndYawRateResponse) Reset ¶
func (x *SetPitchRateAndYawRateResponse) Reset()
func (*SetPitchRateAndYawRateResponse) String ¶
func (x *SetPitchRateAndYawRateResponse) String() 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 SubscribeAttitudeRequest ¶ added in v0.0.8
type SubscribeAttitudeRequest struct {
// contains filtered or unexported fields
}
func (*SubscribeAttitudeRequest) Descriptor
deprecated
added in
v0.0.8
func (*SubscribeAttitudeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeAttitudeRequest.ProtoReflect.Descriptor instead.
func (*SubscribeAttitudeRequest) ProtoMessage ¶ added in v0.0.8
func (*SubscribeAttitudeRequest) ProtoMessage()
func (*SubscribeAttitudeRequest) ProtoReflect ¶ added in v0.0.8
func (x *SubscribeAttitudeRequest) ProtoReflect() protoreflect.Message
func (*SubscribeAttitudeRequest) Reset ¶ added in v0.0.8
func (x *SubscribeAttitudeRequest) Reset()
func (*SubscribeAttitudeRequest) String ¶ added in v0.0.8
func (x *SubscribeAttitudeRequest) 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.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGimbalServiceServer) ReleaseControl ¶
func (UnimplementedGimbalServiceServer) ReleaseControl(context.Context, *ReleaseControlRequest) (*ReleaseControlResponse, error)
func (UnimplementedGimbalServiceServer) SetAngles ¶ added in v0.0.8
func (UnimplementedGimbalServiceServer) SetAngles(context.Context, *SetAnglesRequest) (*SetAnglesResponse, error)
func (UnimplementedGimbalServiceServer) SetMode ¶
func (UnimplementedGimbalServiceServer) SetMode(context.Context, *SetModeRequest) (*SetModeResponse, error)
func (UnimplementedGimbalServiceServer) SetPitchAndYaw ¶
func (UnimplementedGimbalServiceServer) SetPitchAndYaw(context.Context, *SetPitchAndYawRequest) (*SetPitchAndYawResponse, error)
func (UnimplementedGimbalServiceServer) SetPitchRateAndYawRate ¶
func (UnimplementedGimbalServiceServer) SetPitchRateAndYawRate(context.Context, *SetPitchRateAndYawRateRequest) (*SetPitchRateAndYawRateResponse, error)
func (UnimplementedGimbalServiceServer) SetRoiLocation ¶
func (UnimplementedGimbalServiceServer) SetRoiLocation(context.Context, *SetRoiLocationRequest) (*SetRoiLocationResponse, error)
func (UnimplementedGimbalServiceServer) SubscribeAttitude ¶ added in v0.0.8
func (UnimplementedGimbalServiceServer) SubscribeAttitude(*SubscribeAttitudeRequest, grpc.ServerStreamingServer[AttitudeResponse]) error
func (UnimplementedGimbalServiceServer) SubscribeControl ¶
func (UnimplementedGimbalServiceServer) SubscribeControl(*SubscribeControlRequest, grpc.ServerStreamingServer[ControlResponse]) error
func (UnimplementedGimbalServiceServer) TakeControl ¶
func (UnimplementedGimbalServiceServer) TakeControl(context.Context, *TakeControlRequest) (*TakeControlResponse, error)
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.