dji

package
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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessType

type AccessType int
const (
	KeyAccessTypeNone AccessType = 0
	KeyAccessTypeRead AccessType = 1 << (iota - 1)
	KeyAccessTypeWrite
	KeyAccessTypeAction
)

type DataType

type DataType int
const (
	KeyDataTypeBool DataType = iota
	KeyDataTypeLong
	KeyDataTypeAbsoluteRotationParameter
	KeyDataTypeControllerParameter
	KeyDataTypeFunctionEnableParameter
	KeyDataTypeVoid
)

type Key

type Key int
const (
	KeyNone Key = iota
	KeyAirLinkConnection
	KeyGimbalAngleFrontYawRotation
	KeyGimbalAngleFrontPitchRotation
	KeyGimbalConnection
	KeyGimbalControlMode
	KeyGimbalOpenAttitudeUpdates
	KeyGimbalResetPosition
	KeyMainControllerConnection
	KeyMainControllerVirtualStick
	KeyRobomasterOpenChassisSpeedUpdates
	KeyRobomasterSystemConnection
	KeyRobomasterSystemFunctionEnable
	KeysCount
)

func (Key) AccessType

func (k Key) AccessType() AccessType

func (Key) DataType

func (k Key) DataType() DataType

func (Key) Value

func (k Key) Value() uint32

type Result

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

func NewResultFromJSON

func NewResultFromJSON(jsonData []byte) *Result

func (Result) ErrorCode

func (r Result) ErrorCode() int64

func (Result) ErrorDescription

func (r Result) ErrorDescription() string

func (Result) Key

func (r Result) Key() Key

func (Result) SequenceNumber

func (r Result) SequenceNumber() uint32

func (Result) Value

func (r Result) Value() interface{}

Jump to

Keyboard shortcuts

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