ptz

package
v0.0.0-...-50a2d83 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbilityRepo

type AbilityRepo interface {
	Version() (string, error)
	Model() (string, error)
	Restart() error
	Stop() error
	Up(speed Speed) error
	Down(speed Speed) error
	Left(speed Speed) error
	Right(speed Speed) error
	LeftUp(speed Speed) error
	RightUp(speed Speed) error
	LeftDown(speed Speed) error
	RightDown(speed Speed) error
	ZoomAdd() error
	ZoomSub() error
	Position() (*dsd.Position, error)
	Goto(*dsd.Position) error
}

type MockAbility

type MockAbility struct {
}

func NewMockAbility

func NewMockAbility() *MockAbility

func (MockAbility) Down

func (m MockAbility) Down(speed Speed) error

func (MockAbility) Goto

func (m MockAbility) Goto(position *dsd.Position) error

func (MockAbility) Left

func (m MockAbility) Left(speed Speed) error

func (MockAbility) LeftDown

func (m MockAbility) LeftDown(speed Speed) error

func (MockAbility) LeftUp

func (m MockAbility) LeftUp(speed Speed) error

func (MockAbility) Model

func (m MockAbility) Model() (string, error)

func (MockAbility) Position

func (m MockAbility) Position() (*dsd.Position, error)

func (MockAbility) Restart

func (m MockAbility) Restart() error

func (MockAbility) Right

func (m MockAbility) Right(speed Speed) error

func (MockAbility) RightDown

func (m MockAbility) RightDown(speed Speed) error

func (MockAbility) RightUp

func (m MockAbility) RightUp(speed Speed) error

func (MockAbility) Stop

func (m MockAbility) Stop() error

func (MockAbility) Up

func (m MockAbility) Up(speed Speed) error

func (MockAbility) Version

func (m MockAbility) Version() (string, error)

func (MockAbility) ZoomAdd

func (m MockAbility) ZoomAdd() error

func (MockAbility) ZoomSub

func (m MockAbility) ZoomSub() error

type Speed

type Speed int

Speed 云台速度

const (
	SpeedOne Speed = iota + 1
	SpeedTwo
	SpeedThree
	SpeedFour
	SpeedFive
	SpeedSix
	SpeedSeven
	SpeedEight
)

func (Speed) Convert

func (s Speed) Convert() byte

func (Speed) Validate

func (s Speed) Validate() error

Jump to

Keyboard shortcuts

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