internal

package
Version: v0.0.0-...-3e1ade8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandController

type CommandController struct {
	*GenericController
	// contains filtered or unexported fields
}

func NewCommandController

func NewCommandController() (*CommandController, error)

func (*CommandController) DirectSendValue

func (c *CommandController) DirectSendValue(key dji.Key, value uint64)

func (*CommandController) HandleEvent

func (c *CommandController) HandleEvent(event *unity.Event, data []byte,
	tag uint64, wg *sync.WaitGroup)

func (*CommandController) PerformAction

func (c *CommandController) PerformAction(key dji.Key, param interface{},
	resultHandler ResultHandler) error

func (*CommandController) SetValueForKey

func (c *CommandController) SetValueForKey(key dji.Key, param interface{},
	resultHandler ResultHandler) error

func (*CommandController) StartListening

func (c *CommandController) StartListening(key dji.Key,
	resultHandler ResultHandler) (uint64, error)

func (*CommandController) StopListening

func (c *CommandController) StopListening(key dji.Key, tag uint64) error

func (*CommandController) Teardown

func (c *CommandController) Teardown() error

type GenericController

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

func NewGenericController

func NewGenericController(eventHandler bridge.EventHandler) *GenericController

func (*GenericController) StartControllingEvent

func (g *GenericController) StartControllingEvent(eventType unity.EventType) error

func (*GenericController) StopControllingEvent

func (g *GenericController) StopControllingEvent(eventType unity.EventType) error

type ResultHandler

type ResultHandler func(result *dji.Result, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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