service

package
v0.0.0-...-e766dbd Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackDictionary

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

func NewCallbackDictionary

func NewCallbackDictionary() *CallbackDictionary

func (*CallbackDictionary) AddAction

func (cd *CallbackDictionary) AddAction(callbackType CallbackType, action func(result *dji.DJIResult)) uint32

func (*CallbackDictionary) Clear

func (cd *CallbackDictionary) Clear()

func (*CallbackDictionary) Invoke

func (cd *CallbackDictionary) Invoke(callbackType CallbackType, param *dji.DJIResult)

func (*CallbackDictionary) RemoveAction

func (cd *CallbackDictionary) RemoveAction(callbackType CallbackType, seq uint32)

func (*CallbackDictionary) SetAction

func (cd *CallbackDictionary) SetAction(callbackType CallbackType, seq uint32, action func(result *dji.DJIResult))

type CallbackType

type CallbackType int
const (
	Getter CallbackType = iota
	Setter
)

type DJICommandController

type DJICommandController interface {
	Init()
	UnInit()

	unitybridge.IEventHandler

	StartListeningOnKey(key dji.DJIKeys, listener interface{},
		callback func(*dji.DJIResult), fetchFromCache bool)
	SetValueForKeyWithNumber(key dji.DJIKeys,
		value int64, callback func(*dji.DJIResult))
	PerformAction(key dji.DJIKeys, callback func(*dji.DJIResult))
	PerformActionWithParam(key dji.DJIKeys,
		value dji.DJIParamValue, callback func(*dji.DJIResult))
	DirectSendValue(key dji.DJIKeys, value int64)
	GetValueForKey(key dji.DJIKeys, callback func(*dji.DJIResult))
}

func DJICommandControllerInstance

func DJICommandControllerInstance() DJICommandController

type DJIListener

type DJIListener struct {
	Name     string
	Callback func(result *dji.DJIResult)
}

func NewDJIListener

func NewDJIListener(name string, callback func(result *dji.DJIResult)) *DJIListener

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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