action_server

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 (
	FlightMode_name = map[int32]string{
		0:  "FLIGHT_MODE_UNKNOWN",
		1:  "FLIGHT_MODE_READY",
		2:  "FLIGHT_MODE_TAKEOFF",
		3:  "FLIGHT_MODE_HOLD",
		4:  "FLIGHT_MODE_MISSION",
		5:  "FLIGHT_MODE_RETURN_TO_LAUNCH",
		6:  "FLIGHT_MODE_LAND",
		7:  "FLIGHT_MODE_OFFBOARD",
		8:  "FLIGHT_MODE_FOLLOW_ME",
		9:  "FLIGHT_MODE_MANUAL",
		10: "FLIGHT_MODE_ALTCTL",
		11: "FLIGHT_MODE_POSCTL",
		12: "FLIGHT_MODE_ACRO",
		13: "FLIGHT_MODE_STABILIZED",
	}
	FlightMode_value = map[string]int32{
		"FLIGHT_MODE_UNKNOWN":          0,
		"FLIGHT_MODE_READY":            1,
		"FLIGHT_MODE_TAKEOFF":          2,
		"FLIGHT_MODE_HOLD":             3,
		"FLIGHT_MODE_MISSION":          4,
		"FLIGHT_MODE_RETURN_TO_LAUNCH": 5,
		"FLIGHT_MODE_LAND":             6,
		"FLIGHT_MODE_OFFBOARD":         7,
		"FLIGHT_MODE_FOLLOW_ME":        8,
		"FLIGHT_MODE_MANUAL":           9,
		"FLIGHT_MODE_ALTCTL":           10,
		"FLIGHT_MODE_POSCTL":           11,
		"FLIGHT_MODE_ACRO":             12,
		"FLIGHT_MODE_STABILIZED":       13,
	}
)

Enum value maps for FlightMode.

View Source
var (
	ActionServerResult_Result_name = map[int32]string{
		0:  "RESULT_UNKNOWN",
		1:  "RESULT_SUCCESS",
		2:  "RESULT_NO_SYSTEM",
		3:  "RESULT_CONNECTION_ERROR",
		4:  "RESULT_BUSY",
		5:  "RESULT_COMMAND_DENIED",
		6:  "RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN",
		7:  "RESULT_COMMAND_DENIED_NOT_LANDED",
		8:  "RESULT_TIMEOUT",
		9:  "RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN",
		10: "RESULT_NO_VTOL_TRANSITION_SUPPORT",
		11: "RESULT_PARAMETER_ERROR",
		12: "RESULT_NEXT",
	}
	ActionServerResult_Result_value = map[string]int32{
		"RESULT_UNKNOWN":                             0,
		"RESULT_SUCCESS":                             1,
		"RESULT_NO_SYSTEM":                           2,
		"RESULT_CONNECTION_ERROR":                    3,
		"RESULT_BUSY":                                4,
		"RESULT_COMMAND_DENIED":                      5,
		"RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN": 6,
		"RESULT_COMMAND_DENIED_NOT_LANDED":           7,
		"RESULT_TIMEOUT":                             8,
		"RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN":     9,
		"RESULT_NO_VTOL_TRANSITION_SUPPORT":          10,
		"RESULT_PARAMETER_ERROR":                     11,
		"RESULT_NEXT":                                12,
	}
)

Enum value maps for ActionServerResult_Result.

View Source
var ActionServerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mavsdk.rpc.action_server.ActionServerService",
	HandlerType: (*ActionServerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SetAllowTakeoff",
			Handler:    _ActionServerService_SetAllowTakeoff_Handler,
		},
		{
			MethodName: "SetArmable",
			Handler:    _ActionServerService_SetArmable_Handler,
		},
		{
			MethodName: "SetDisarmable",
			Handler:    _ActionServerService_SetDisarmable_Handler,
		},
		{
			MethodName: "SetAllowableFlightModes",
			Handler:    _ActionServerService_SetAllowableFlightModes_Handler,
		},
		{
			MethodName: "GetAllowableFlightModes",
			Handler:    _ActionServerService_GetAllowableFlightModes_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeArmDisarm",
			Handler:       _ActionServerService_SubscribeArmDisarm_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeFlightModeChange",
			Handler:       _ActionServerService_SubscribeFlightModeChange_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeTakeoff",
			Handler:       _ActionServerService_SubscribeTakeoff_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeLand",
			Handler:       _ActionServerService_SubscribeLand_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeReboot",
			Handler:       _ActionServerService_SubscribeReboot_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeShutdown",
			Handler:       _ActionServerService_SubscribeShutdown_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeTerminate",
			Handler:       _ActionServerService_SubscribeTerminate_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "action_server.proto",
}

ActionServerService_ServiceDesc is the grpc.ServiceDesc for ActionServerService 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_action_server_proto protoreflect.FileDescriptor

Functions

func RegisterActionServerServiceServer

func RegisterActionServerServiceServer(s grpc.ServiceRegistrar, srv ActionServerServiceServer)

Types

type ActionServerResult

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

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

Deprecated: Use ActionServerResult.ProtoReflect.Descriptor instead.

func (*ActionServerResult) GetResult

func (*ActionServerResult) GetResultStr

func (x *ActionServerResult) GetResultStr() string

func (*ActionServerResult) ProtoMessage

func (*ActionServerResult) ProtoMessage()

func (*ActionServerResult) ProtoReflect

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

func (*ActionServerResult) Reset

func (x *ActionServerResult) Reset()

func (*ActionServerResult) String

func (x *ActionServerResult) String() string

type ActionServerResult_Result

type ActionServerResult_Result int32

Possible results returned for action requests.

const (
	ActionServerResult_RESULT_UNKNOWN                             ActionServerResult_Result = 0  // Unknown result
	ActionServerResult_RESULT_SUCCESS                             ActionServerResult_Result = 1  // Request was successful
	ActionServerResult_RESULT_NO_SYSTEM                           ActionServerResult_Result = 2  // No system is connected
	ActionServerResult_RESULT_CONNECTION_ERROR                    ActionServerResult_Result = 3  // Connection error
	ActionServerResult_RESULT_BUSY                                ActionServerResult_Result = 4  // Vehicle is busy
	ActionServerResult_RESULT_COMMAND_DENIED                      ActionServerResult_Result = 5  // Command refused by vehicle
	ActionServerResult_RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN ActionServerResult_Result = 6  // Command refused because landed state is unknown
	ActionServerResult_RESULT_COMMAND_DENIED_NOT_LANDED           ActionServerResult_Result = 7  // Command refused because vehicle not landed
	ActionServerResult_RESULT_TIMEOUT                             ActionServerResult_Result = 8  // Request timed out
	ActionServerResult_RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN     ActionServerResult_Result = 9  // Hybrid/VTOL transition support is unknown
	ActionServerResult_RESULT_NO_VTOL_TRANSITION_SUPPORT          ActionServerResult_Result = 10 // Vehicle does not support hybrid/VTOL transitions
	ActionServerResult_RESULT_PARAMETER_ERROR                     ActionServerResult_Result = 11 // Error getting or setting parameter
	ActionServerResult_RESULT_NEXT                                ActionServerResult_Result = 12 // Intermediate message showing progress or instructions on the next steps
)

func (ActionServerResult_Result) Descriptor

func (ActionServerResult_Result) Enum

func (ActionServerResult_Result) EnumDescriptor deprecated

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

Deprecated: Use ActionServerResult_Result.Descriptor instead.

func (ActionServerResult_Result) Number

func (ActionServerResult_Result) String

func (x ActionServerResult_Result) String() string

func (ActionServerResult_Result) Type

type ActionServerServiceClient

type ActionServerServiceClient interface {
	// Subscribe to ARM/DISARM commands
	SubscribeArmDisarm(ctx context.Context, in *SubscribeArmDisarmRequest, opts ...grpc.CallOption) (ActionServerService_SubscribeArmDisarmClient, error)
	// Subscribe to DO_SET_MODE
	SubscribeFlightModeChange(ctx context.Context, in *SubscribeFlightModeChangeRequest, opts ...grpc.CallOption) (ActionServerService_SubscribeFlightModeChangeClient, error)
	// Subscribe to takeoff command
	SubscribeTakeoff(ctx context.Context, in *SubscribeTakeoffRequest, opts ...grpc.CallOption) (ActionServerService_SubscribeTakeoffClient, error)
	// Subscribe to land command
	SubscribeLand(ctx context.Context, in *SubscribeLandRequest, opts ...grpc.CallOption) (ActionServerService_SubscribeLandClient, error)
	// Subscribe to reboot command
	SubscribeReboot(ctx context.Context, in *SubscribeRebootRequest, opts ...grpc.CallOption) (ActionServerService_SubscribeRebootClient, error)
	// Subscribe to shutdown command
	SubscribeShutdown(ctx context.Context, in *SubscribeShutdownRequest, opts ...grpc.CallOption) (ActionServerService_SubscribeShutdownClient, error)
	// Subscribe to terminate command
	SubscribeTerminate(ctx context.Context, in *SubscribeTerminateRequest, opts ...grpc.CallOption) (ActionServerService_SubscribeTerminateClient, error)
	// Can the vehicle takeoff
	SetAllowTakeoff(ctx context.Context, in *SetAllowTakeoffRequest, opts ...grpc.CallOption) (*SetAllowTakeoffResponse, error)
	// Can the vehicle arm when requested
	SetArmable(ctx context.Context, in *SetArmableRequest, opts ...grpc.CallOption) (*SetArmableResponse, error)
	// Can the vehicle disarm when requested
	SetDisarmable(ctx context.Context, in *SetDisarmableRequest, opts ...grpc.CallOption) (*SetDisarmableResponse, error)
	// Set which modes the vehicle can transition to (Manual always allowed)
	SetAllowableFlightModes(ctx context.Context, in *SetAllowableFlightModesRequest, opts ...grpc.CallOption) (*SetAllowableFlightModesResponse, error)
	// Get which modes the vehicle can transition to (Manual always allowed)
	GetAllowableFlightModes(ctx context.Context, in *GetAllowableFlightModesRequest, opts ...grpc.CallOption) (*GetAllowableFlightModesResponse, error)
}

ActionServerServiceClient is the client API for ActionServerService 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 ActionServerServiceServer

type ActionServerServiceServer interface {
	// Subscribe to ARM/DISARM commands
	SubscribeArmDisarm(*SubscribeArmDisarmRequest, ActionServerService_SubscribeArmDisarmServer) error
	// Subscribe to DO_SET_MODE
	SubscribeFlightModeChange(*SubscribeFlightModeChangeRequest, ActionServerService_SubscribeFlightModeChangeServer) error
	// Subscribe to takeoff command
	SubscribeTakeoff(*SubscribeTakeoffRequest, ActionServerService_SubscribeTakeoffServer) error
	// Subscribe to land command
	SubscribeLand(*SubscribeLandRequest, ActionServerService_SubscribeLandServer) error
	// Subscribe to reboot command
	SubscribeReboot(*SubscribeRebootRequest, ActionServerService_SubscribeRebootServer) error
	// Subscribe to shutdown command
	SubscribeShutdown(*SubscribeShutdownRequest, ActionServerService_SubscribeShutdownServer) error
	// Subscribe to terminate command
	SubscribeTerminate(*SubscribeTerminateRequest, ActionServerService_SubscribeTerminateServer) error
	// Can the vehicle takeoff
	SetAllowTakeoff(context.Context, *SetAllowTakeoffRequest) (*SetAllowTakeoffResponse, error)
	// Can the vehicle arm when requested
	SetArmable(context.Context, *SetArmableRequest) (*SetArmableResponse, error)
	// Can the vehicle disarm when requested
	SetDisarmable(context.Context, *SetDisarmableRequest) (*SetDisarmableResponse, error)
	// Set which modes the vehicle can transition to (Manual always allowed)
	SetAllowableFlightModes(context.Context, *SetAllowableFlightModesRequest) (*SetAllowableFlightModesResponse, error)
	// Get which modes the vehicle can transition to (Manual always allowed)
	GetAllowableFlightModes(context.Context, *GetAllowableFlightModesRequest) (*GetAllowableFlightModesResponse, error)
	// contains filtered or unexported methods
}

ActionServerServiceServer is the server API for ActionServerService service. All implementations must embed UnimplementedActionServerServiceServer for forward compatibility

type ActionServerService_SubscribeArmDisarmClient

type ActionServerService_SubscribeArmDisarmClient interface {
	Recv() (*ArmDisarmResponse, error)
	grpc.ClientStream
}

type ActionServerService_SubscribeArmDisarmServer

type ActionServerService_SubscribeArmDisarmServer interface {
	Send(*ArmDisarmResponse) error
	grpc.ServerStream
}

type ActionServerService_SubscribeFlightModeChangeClient

type ActionServerService_SubscribeFlightModeChangeClient interface {
	Recv() (*FlightModeChangeResponse, error)
	grpc.ClientStream
}

type ActionServerService_SubscribeFlightModeChangeServer

type ActionServerService_SubscribeFlightModeChangeServer interface {
	Send(*FlightModeChangeResponse) error
	grpc.ServerStream
}

type ActionServerService_SubscribeLandClient

type ActionServerService_SubscribeLandClient interface {
	Recv() (*LandResponse, error)
	grpc.ClientStream
}

type ActionServerService_SubscribeLandServer

type ActionServerService_SubscribeLandServer interface {
	Send(*LandResponse) error
	grpc.ServerStream
}

type ActionServerService_SubscribeRebootClient

type ActionServerService_SubscribeRebootClient interface {
	Recv() (*RebootResponse, error)
	grpc.ClientStream
}

type ActionServerService_SubscribeRebootServer

type ActionServerService_SubscribeRebootServer interface {
	Send(*RebootResponse) error
	grpc.ServerStream
}

type ActionServerService_SubscribeShutdownClient

type ActionServerService_SubscribeShutdownClient interface {
	Recv() (*ShutdownResponse, error)
	grpc.ClientStream
}

type ActionServerService_SubscribeShutdownServer

type ActionServerService_SubscribeShutdownServer interface {
	Send(*ShutdownResponse) error
	grpc.ServerStream
}

type ActionServerService_SubscribeTakeoffClient

type ActionServerService_SubscribeTakeoffClient interface {
	Recv() (*TakeoffResponse, error)
	grpc.ClientStream
}

type ActionServerService_SubscribeTakeoffServer

type ActionServerService_SubscribeTakeoffServer interface {
	Send(*TakeoffResponse) error
	grpc.ServerStream
}

type ActionServerService_SubscribeTerminateClient

type ActionServerService_SubscribeTerminateClient interface {
	Recv() (*TerminateResponse, error)
	grpc.ClientStream
}

type ActionServerService_SubscribeTerminateServer

type ActionServerService_SubscribeTerminateServer interface {
	Send(*TerminateResponse) error
	grpc.ServerStream
}

type AllowableFlightModes

type AllowableFlightModes struct {
	CanAutoMode      bool `protobuf:"varint,1,opt,name=can_auto_mode,json=canAutoMode,proto3" json:"can_auto_mode,omitempty"`                // Auto/mission mode
	CanGuidedMode    bool `protobuf:"varint,2,opt,name=can_guided_mode,json=canGuidedMode,proto3" json:"can_guided_mode,omitempty"`          // Guided mode
	CanStabilizeMode bool `protobuf:"varint,3,opt,name=can_stabilize_mode,json=canStabilizeMode,proto3" json:"can_stabilize_mode,omitempty"` // Stabilize mode
	// contains filtered or unexported fields
}

State to check if the vehicle can transition to respective flightmodes

func (*AllowableFlightModes) Descriptor deprecated

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

Deprecated: Use AllowableFlightModes.ProtoReflect.Descriptor instead.

func (*AllowableFlightModes) GetCanAutoMode

func (x *AllowableFlightModes) GetCanAutoMode() bool

func (*AllowableFlightModes) GetCanGuidedMode

func (x *AllowableFlightModes) GetCanGuidedMode() bool

func (*AllowableFlightModes) GetCanStabilizeMode

func (x *AllowableFlightModes) GetCanStabilizeMode() bool

func (*AllowableFlightModes) ProtoMessage

func (*AllowableFlightModes) ProtoMessage()

func (*AllowableFlightModes) ProtoReflect

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

func (*AllowableFlightModes) Reset

func (x *AllowableFlightModes) Reset()

func (*AllowableFlightModes) String

func (x *AllowableFlightModes) String() string

type ArmDisarm

type ArmDisarm struct {
	Arm   bool `protobuf:"varint,1,opt,name=arm,proto3" json:"arm,omitempty"`     // Should vehicle arm
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` // Should arm override pre-flight checks
	// contains filtered or unexported fields
}

Arming message type

func (*ArmDisarm) Descriptor deprecated

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

Deprecated: Use ArmDisarm.ProtoReflect.Descriptor instead.

func (*ArmDisarm) GetArm

func (x *ArmDisarm) GetArm() bool

func (*ArmDisarm) GetForce

func (x *ArmDisarm) GetForce() bool

func (*ArmDisarm) ProtoMessage

func (*ArmDisarm) ProtoMessage()

func (*ArmDisarm) ProtoReflect

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

func (*ArmDisarm) Reset

func (x *ArmDisarm) Reset()

func (*ArmDisarm) String

func (x *ArmDisarm) String() string

type ArmDisarmResponse

type ArmDisarmResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	Arm                *ArmDisarm          `protobuf:"bytes,2,opt,name=arm,proto3" json:"arm,omitempty"`
	// contains filtered or unexported fields
}

func (*ArmDisarmResponse) Descriptor deprecated

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

Deprecated: Use ArmDisarmResponse.ProtoReflect.Descriptor instead.

func (*ArmDisarmResponse) GetActionServerResult

func (x *ArmDisarmResponse) GetActionServerResult() *ActionServerResult

func (*ArmDisarmResponse) GetArm

func (x *ArmDisarmResponse) GetArm() *ArmDisarm

func (*ArmDisarmResponse) ProtoMessage

func (*ArmDisarmResponse) ProtoMessage()

func (*ArmDisarmResponse) ProtoReflect

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

func (*ArmDisarmResponse) Reset

func (x *ArmDisarmResponse) Reset()

func (*ArmDisarmResponse) String

func (x *ArmDisarmResponse) String() string

type FlightMode

type FlightMode int32

Flight modes.

For more information about flight modes, check out https://docs.px4.io/master/en/config/flight_mode.html.

const (
	FlightMode_FLIGHT_MODE_UNKNOWN          FlightMode = 0  // Mode not known
	FlightMode_FLIGHT_MODE_READY            FlightMode = 1  // Armed and ready to take off
	FlightMode_FLIGHT_MODE_TAKEOFF          FlightMode = 2  // Taking off
	FlightMode_FLIGHT_MODE_HOLD             FlightMode = 3  // Holding (hovering in place (or circling for fixed-wing vehicles)
	FlightMode_FLIGHT_MODE_MISSION          FlightMode = 4  // In mission
	FlightMode_FLIGHT_MODE_RETURN_TO_LAUNCH FlightMode = 5  // Returning to launch position (then landing)
	FlightMode_FLIGHT_MODE_LAND             FlightMode = 6  // Landing
	FlightMode_FLIGHT_MODE_OFFBOARD         FlightMode = 7  // In 'offboard' mode
	FlightMode_FLIGHT_MODE_FOLLOW_ME        FlightMode = 8  // In 'follow-me' mode
	FlightMode_FLIGHT_MODE_MANUAL           FlightMode = 9  // In 'Manual' mode
	FlightMode_FLIGHT_MODE_ALTCTL           FlightMode = 10 // In 'Altitude Control' mode
	FlightMode_FLIGHT_MODE_POSCTL           FlightMode = 11 // In 'Position Control' mode
	FlightMode_FLIGHT_MODE_ACRO             FlightMode = 12 // In 'Acro' mode
	FlightMode_FLIGHT_MODE_STABILIZED       FlightMode = 13 // In 'Stabilize' mode
)

func (FlightMode) Descriptor

func (FlightMode) Descriptor() protoreflect.EnumDescriptor

func (FlightMode) Enum

func (x FlightMode) Enum() *FlightMode

func (FlightMode) EnumDescriptor deprecated

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

Deprecated: Use FlightMode.Descriptor instead.

func (FlightMode) Number

func (x FlightMode) Number() protoreflect.EnumNumber

func (FlightMode) String

func (x FlightMode) String() string

func (FlightMode) Type

type FlightModeChangeResponse

type FlightModeChangeResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	FlightMode         FlightMode          `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FlightModeChangeResponse) Descriptor deprecated

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

Deprecated: Use FlightModeChangeResponse.ProtoReflect.Descriptor instead.

func (*FlightModeChangeResponse) GetActionServerResult

func (x *FlightModeChangeResponse) GetActionServerResult() *ActionServerResult

func (*FlightModeChangeResponse) GetFlightMode

func (x *FlightModeChangeResponse) GetFlightMode() FlightMode

func (*FlightModeChangeResponse) ProtoMessage

func (*FlightModeChangeResponse) ProtoMessage()

func (*FlightModeChangeResponse) ProtoReflect

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

func (*FlightModeChangeResponse) Reset

func (x *FlightModeChangeResponse) Reset()

func (*FlightModeChangeResponse) String

func (x *FlightModeChangeResponse) String() string

type GetAllowableFlightModesRequest

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

func (*GetAllowableFlightModesRequest) Descriptor deprecated

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

Deprecated: Use GetAllowableFlightModesRequest.ProtoReflect.Descriptor instead.

func (*GetAllowableFlightModesRequest) ProtoMessage

func (*GetAllowableFlightModesRequest) ProtoMessage()

func (*GetAllowableFlightModesRequest) ProtoReflect

func (*GetAllowableFlightModesRequest) Reset

func (x *GetAllowableFlightModesRequest) Reset()

func (*GetAllowableFlightModesRequest) String

type GetAllowableFlightModesResponse

type GetAllowableFlightModesResponse struct {
	FlightModes *AllowableFlightModes `protobuf:"bytes,1,opt,name=flight_modes,json=flightModes,proto3" json:"flight_modes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllowableFlightModesResponse) Descriptor deprecated

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

Deprecated: Use GetAllowableFlightModesResponse.ProtoReflect.Descriptor instead.

func (*GetAllowableFlightModesResponse) GetFlightModes

func (*GetAllowableFlightModesResponse) ProtoMessage

func (*GetAllowableFlightModesResponse) ProtoMessage()

func (*GetAllowableFlightModesResponse) ProtoReflect

func (*GetAllowableFlightModesResponse) Reset

func (*GetAllowableFlightModesResponse) String

type LandResponse

type LandResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	Land               bool                `protobuf:"varint,2,opt,name=land,proto3" json:"land,omitempty"`
	// contains filtered or unexported fields
}

func (*LandResponse) Descriptor deprecated

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

Deprecated: Use LandResponse.ProtoReflect.Descriptor instead.

func (*LandResponse) GetActionServerResult

func (x *LandResponse) GetActionServerResult() *ActionServerResult

func (*LandResponse) GetLand

func (x *LandResponse) GetLand() bool

func (*LandResponse) ProtoMessage

func (*LandResponse) ProtoMessage()

func (*LandResponse) ProtoReflect

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

func (*LandResponse) Reset

func (x *LandResponse) Reset()

func (*LandResponse) String

func (x *LandResponse) String() string

type RebootResponse

type RebootResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	Reboot             bool                `protobuf:"varint,2,opt,name=reboot,proto3" json:"reboot,omitempty"`
	// contains filtered or unexported fields
}

func (*RebootResponse) Descriptor deprecated

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

Deprecated: Use RebootResponse.ProtoReflect.Descriptor instead.

func (*RebootResponse) GetActionServerResult

func (x *RebootResponse) GetActionServerResult() *ActionServerResult

func (*RebootResponse) GetReboot

func (x *RebootResponse) GetReboot() bool

func (*RebootResponse) ProtoMessage

func (*RebootResponse) ProtoMessage()

func (*RebootResponse) ProtoReflect

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

func (*RebootResponse) Reset

func (x *RebootResponse) Reset()

func (*RebootResponse) String

func (x *RebootResponse) String() string

type ServiceImpl

type ServiceImpl struct {
	Client ActionServerServiceClient
}

func (*ServiceImpl) ArmDisarm

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

func (*ServiceImpl) FlightModeChange

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

func (*ServiceImpl) GetAllowableFlightModes

func (s *ServiceImpl) GetAllowableFlightModes(ctx context.Context) (*GetAllowableFlightModesResponse, error)

func (*ServiceImpl) Land

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

func (*ServiceImpl) Reboot

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

func (*ServiceImpl) SetAllowTakeoff

func (s *ServiceImpl) SetAllowTakeoff(ctx context.Context, allowTakeoff bool) (*SetAllowTakeoffResponse, error)

func (*ServiceImpl) SetAllowableFlightModes

func (s *ServiceImpl) SetAllowableFlightModes(ctx context.Context, flightModes *AllowableFlightModes) (*SetAllowableFlightModesResponse, error)

func (*ServiceImpl) SetArmable

func (s *ServiceImpl) SetArmable(ctx context.Context, armable bool, forceArmable bool) (*SetArmableResponse, error)

func (*ServiceImpl) SetDisarmable

func (s *ServiceImpl) SetDisarmable(ctx context.Context, disarmable bool, forceDisarmable bool) (*SetDisarmableResponse, error)

func (*ServiceImpl) Shutdown

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

func (*ServiceImpl) Takeoff

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

func (*ServiceImpl) Terminate

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

type SetAllowTakeoffRequest

type SetAllowTakeoffRequest struct {
	AllowTakeoff bool `protobuf:"varint,1,opt,name=allow_takeoff,json=allowTakeoff,proto3" json:"allow_takeoff,omitempty"` // Is takeoff allowed?
	// contains filtered or unexported fields
}

func (*SetAllowTakeoffRequest) Descriptor deprecated

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

Deprecated: Use SetAllowTakeoffRequest.ProtoReflect.Descriptor instead.

func (*SetAllowTakeoffRequest) GetAllowTakeoff

func (x *SetAllowTakeoffRequest) GetAllowTakeoff() bool

func (*SetAllowTakeoffRequest) ProtoMessage

func (*SetAllowTakeoffRequest) ProtoMessage()

func (*SetAllowTakeoffRequest) ProtoReflect

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

func (*SetAllowTakeoffRequest) Reset

func (x *SetAllowTakeoffRequest) Reset()

func (*SetAllowTakeoffRequest) String

func (x *SetAllowTakeoffRequest) String() string

type SetAllowTakeoffResponse

type SetAllowTakeoffResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetAllowTakeoffResponse) Descriptor deprecated

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

Deprecated: Use SetAllowTakeoffResponse.ProtoReflect.Descriptor instead.

func (*SetAllowTakeoffResponse) GetActionServerResult

func (x *SetAllowTakeoffResponse) GetActionServerResult() *ActionServerResult

func (*SetAllowTakeoffResponse) ProtoMessage

func (*SetAllowTakeoffResponse) ProtoMessage()

func (*SetAllowTakeoffResponse) ProtoReflect

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

func (*SetAllowTakeoffResponse) Reset

func (x *SetAllowTakeoffResponse) Reset()

func (*SetAllowTakeoffResponse) String

func (x *SetAllowTakeoffResponse) String() string

type SetAllowableFlightModesRequest

type SetAllowableFlightModesRequest struct {
	FlightModes *AllowableFlightModes `protobuf:"bytes,1,opt,name=flight_modes,json=flightModes,proto3" json:"flight_modes,omitempty"`
	// contains filtered or unexported fields
}

func (*SetAllowableFlightModesRequest) Descriptor deprecated

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

Deprecated: Use SetAllowableFlightModesRequest.ProtoReflect.Descriptor instead.

func (*SetAllowableFlightModesRequest) GetFlightModes

func (*SetAllowableFlightModesRequest) ProtoMessage

func (*SetAllowableFlightModesRequest) ProtoMessage()

func (*SetAllowableFlightModesRequest) ProtoReflect

func (*SetAllowableFlightModesRequest) Reset

func (x *SetAllowableFlightModesRequest) Reset()

func (*SetAllowableFlightModesRequest) String

type SetAllowableFlightModesResponse

type SetAllowableFlightModesResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetAllowableFlightModesResponse) Descriptor deprecated

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

Deprecated: Use SetAllowableFlightModesResponse.ProtoReflect.Descriptor instead.

func (*SetAllowableFlightModesResponse) GetActionServerResult

func (x *SetAllowableFlightModesResponse) GetActionServerResult() *ActionServerResult

func (*SetAllowableFlightModesResponse) ProtoMessage

func (*SetAllowableFlightModesResponse) ProtoMessage()

func (*SetAllowableFlightModesResponse) ProtoReflect

func (*SetAllowableFlightModesResponse) Reset

func (*SetAllowableFlightModesResponse) String

type SetArmableRequest

type SetArmableRequest struct {
	Armable      bool `protobuf:"varint,1,opt,name=armable,proto3" json:"armable,omitempty"`                               // Is Armable now?
	ForceArmable bool `protobuf:"varint,2,opt,name=force_armable,json=forceArmable,proto3" json:"force_armable,omitempty"` // Is armable with force?
	// contains filtered or unexported fields
}

func (*SetArmableRequest) Descriptor deprecated

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

Deprecated: Use SetArmableRequest.ProtoReflect.Descriptor instead.

func (*SetArmableRequest) GetArmable

func (x *SetArmableRequest) GetArmable() bool

func (*SetArmableRequest) GetForceArmable

func (x *SetArmableRequest) GetForceArmable() bool

func (*SetArmableRequest) ProtoMessage

func (*SetArmableRequest) ProtoMessage()

func (*SetArmableRequest) ProtoReflect

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

func (*SetArmableRequest) Reset

func (x *SetArmableRequest) Reset()

func (*SetArmableRequest) String

func (x *SetArmableRequest) String() string

type SetArmableResponse

type SetArmableResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetArmableResponse) Descriptor deprecated

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

Deprecated: Use SetArmableResponse.ProtoReflect.Descriptor instead.

func (*SetArmableResponse) GetActionServerResult

func (x *SetArmableResponse) GetActionServerResult() *ActionServerResult

func (*SetArmableResponse) ProtoMessage

func (*SetArmableResponse) ProtoMessage()

func (*SetArmableResponse) ProtoReflect

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

func (*SetArmableResponse) Reset

func (x *SetArmableResponse) Reset()

func (*SetArmableResponse) String

func (x *SetArmableResponse) String() string

type SetDisarmableRequest

type SetDisarmableRequest struct {
	Disarmable      bool `protobuf:"varint,1,opt,name=disarmable,proto3" json:"disarmable,omitempty"`                                  // Is disarmable now?
	ForceDisarmable bool `protobuf:"varint,2,opt,name=force_disarmable,json=forceDisarmable,proto3" json:"force_disarmable,omitempty"` // Is disarmable with force? (Kill)
	// contains filtered or unexported fields
}

func (*SetDisarmableRequest) Descriptor deprecated

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

Deprecated: Use SetDisarmableRequest.ProtoReflect.Descriptor instead.

func (*SetDisarmableRequest) GetDisarmable

func (x *SetDisarmableRequest) GetDisarmable() bool

func (*SetDisarmableRequest) GetForceDisarmable

func (x *SetDisarmableRequest) GetForceDisarmable() bool

func (*SetDisarmableRequest) ProtoMessage

func (*SetDisarmableRequest) ProtoMessage()

func (*SetDisarmableRequest) ProtoReflect

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

func (*SetDisarmableRequest) Reset

func (x *SetDisarmableRequest) Reset()

func (*SetDisarmableRequest) String

func (x *SetDisarmableRequest) String() string

type SetDisarmableResponse

type SetDisarmableResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetDisarmableResponse) Descriptor deprecated

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

Deprecated: Use SetDisarmableResponse.ProtoReflect.Descriptor instead.

func (*SetDisarmableResponse) GetActionServerResult

func (x *SetDisarmableResponse) GetActionServerResult() *ActionServerResult

func (*SetDisarmableResponse) ProtoMessage

func (*SetDisarmableResponse) ProtoMessage()

func (*SetDisarmableResponse) ProtoReflect

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

func (*SetDisarmableResponse) Reset

func (x *SetDisarmableResponse) Reset()

func (*SetDisarmableResponse) String

func (x *SetDisarmableResponse) String() string

type ShutdownResponse

type ShutdownResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	Shutdown           bool                `protobuf:"varint,2,opt,name=shutdown,proto3" json:"shutdown,omitempty"`
	// contains filtered or unexported fields
}

func (*ShutdownResponse) Descriptor deprecated

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

Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.

func (*ShutdownResponse) GetActionServerResult

func (x *ShutdownResponse) GetActionServerResult() *ActionServerResult

func (*ShutdownResponse) GetShutdown

func (x *ShutdownResponse) GetShutdown() bool

func (*ShutdownResponse) ProtoMessage

func (*ShutdownResponse) ProtoMessage()

func (*ShutdownResponse) ProtoReflect

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

func (*ShutdownResponse) Reset

func (x *ShutdownResponse) Reset()

func (*ShutdownResponse) String

func (x *ShutdownResponse) String() string

type SubscribeArmDisarmRequest

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

func (*SubscribeArmDisarmRequest) Descriptor deprecated

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

Deprecated: Use SubscribeArmDisarmRequest.ProtoReflect.Descriptor instead.

func (*SubscribeArmDisarmRequest) ProtoMessage

func (*SubscribeArmDisarmRequest) ProtoMessage()

func (*SubscribeArmDisarmRequest) ProtoReflect

func (*SubscribeArmDisarmRequest) Reset

func (x *SubscribeArmDisarmRequest) Reset()

func (*SubscribeArmDisarmRequest) String

func (x *SubscribeArmDisarmRequest) String() string

type SubscribeFlightModeChangeRequest

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

func (*SubscribeFlightModeChangeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeFlightModeChangeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeFlightModeChangeRequest) ProtoMessage

func (*SubscribeFlightModeChangeRequest) ProtoMessage()

func (*SubscribeFlightModeChangeRequest) ProtoReflect

func (*SubscribeFlightModeChangeRequest) Reset

func (*SubscribeFlightModeChangeRequest) String

type SubscribeLandRequest

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

func (*SubscribeLandRequest) Descriptor deprecated

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

Deprecated: Use SubscribeLandRequest.ProtoReflect.Descriptor instead.

func (*SubscribeLandRequest) ProtoMessage

func (*SubscribeLandRequest) ProtoMessage()

func (*SubscribeLandRequest) ProtoReflect

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

func (*SubscribeLandRequest) Reset

func (x *SubscribeLandRequest) Reset()

func (*SubscribeLandRequest) String

func (x *SubscribeLandRequest) String() string

type SubscribeRebootRequest

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

func (*SubscribeRebootRequest) Descriptor deprecated

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

Deprecated: Use SubscribeRebootRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRebootRequest) ProtoMessage

func (*SubscribeRebootRequest) ProtoMessage()

func (*SubscribeRebootRequest) ProtoReflect

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

func (*SubscribeRebootRequest) Reset

func (x *SubscribeRebootRequest) Reset()

func (*SubscribeRebootRequest) String

func (x *SubscribeRebootRequest) String() string

type SubscribeShutdownRequest

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

func (*SubscribeShutdownRequest) Descriptor deprecated

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

Deprecated: Use SubscribeShutdownRequest.ProtoReflect.Descriptor instead.

func (*SubscribeShutdownRequest) ProtoMessage

func (*SubscribeShutdownRequest) ProtoMessage()

func (*SubscribeShutdownRequest) ProtoReflect

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

func (*SubscribeShutdownRequest) Reset

func (x *SubscribeShutdownRequest) Reset()

func (*SubscribeShutdownRequest) String

func (x *SubscribeShutdownRequest) String() string

type SubscribeTakeoffRequest

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

func (*SubscribeTakeoffRequest) Descriptor deprecated

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

Deprecated: Use SubscribeTakeoffRequest.ProtoReflect.Descriptor instead.

func (*SubscribeTakeoffRequest) ProtoMessage

func (*SubscribeTakeoffRequest) ProtoMessage()

func (*SubscribeTakeoffRequest) ProtoReflect

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

func (*SubscribeTakeoffRequest) Reset

func (x *SubscribeTakeoffRequest) Reset()

func (*SubscribeTakeoffRequest) String

func (x *SubscribeTakeoffRequest) String() string

type SubscribeTerminateRequest

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

func (*SubscribeTerminateRequest) Descriptor deprecated

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

Deprecated: Use SubscribeTerminateRequest.ProtoReflect.Descriptor instead.

func (*SubscribeTerminateRequest) ProtoMessage

func (*SubscribeTerminateRequest) ProtoMessage()

func (*SubscribeTerminateRequest) ProtoReflect

func (*SubscribeTerminateRequest) Reset

func (x *SubscribeTerminateRequest) Reset()

func (*SubscribeTerminateRequest) String

func (x *SubscribeTerminateRequest) String() string

type TakeoffResponse

type TakeoffResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	Takeoff            bool                `protobuf:"varint,2,opt,name=takeoff,proto3" json:"takeoff,omitempty"`
	// contains filtered or unexported fields
}

func (*TakeoffResponse) Descriptor deprecated

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

Deprecated: Use TakeoffResponse.ProtoReflect.Descriptor instead.

func (*TakeoffResponse) GetActionServerResult

func (x *TakeoffResponse) GetActionServerResult() *ActionServerResult

func (*TakeoffResponse) GetTakeoff

func (x *TakeoffResponse) GetTakeoff() bool

func (*TakeoffResponse) ProtoMessage

func (*TakeoffResponse) ProtoMessage()

func (*TakeoffResponse) ProtoReflect

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

func (*TakeoffResponse) Reset

func (x *TakeoffResponse) Reset()

func (*TakeoffResponse) String

func (x *TakeoffResponse) String() string

type TerminateResponse

type TerminateResponse struct {
	ActionServerResult *ActionServerResult `protobuf:"bytes,1,opt,name=action_server_result,json=actionServerResult,proto3" json:"action_server_result,omitempty"`
	Terminate          bool                `protobuf:"varint,2,opt,name=terminate,proto3" json:"terminate,omitempty"`
	// contains filtered or unexported fields
}

func (*TerminateResponse) Descriptor deprecated

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

Deprecated: Use TerminateResponse.ProtoReflect.Descriptor instead.

func (*TerminateResponse) GetActionServerResult

func (x *TerminateResponse) GetActionServerResult() *ActionServerResult

func (*TerminateResponse) GetTerminate

func (x *TerminateResponse) GetTerminate() bool

func (*TerminateResponse) ProtoMessage

func (*TerminateResponse) ProtoMessage()

func (*TerminateResponse) ProtoReflect

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

func (*TerminateResponse) Reset

func (x *TerminateResponse) Reset()

func (*TerminateResponse) String

func (x *TerminateResponse) String() string

type UnimplementedActionServerServiceServer

type UnimplementedActionServerServiceServer struct {
}

UnimplementedActionServerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedActionServerServiceServer) SetAllowTakeoff

func (UnimplementedActionServerServiceServer) SetArmable

func (UnimplementedActionServerServiceServer) SetDisarmable

type UnsafeActionServerServiceServer

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

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

Jump to

Keyboard shortcuts

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