idle

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function int

Function 空闲功能

const (
	None       Function = iota // None
	Preset                     // 预置点
	Cruise                     // 巡航
	Trace                      // 巡迹
	LineScan                   // 线性扫描
	RegionScan                 // 区域扫描
)

func (Function) Validate

func (f Function) Validate() error

type Idle

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

func New

func New(motion *dsd.IdleMotion) *Idle

func (*Idle) Default

func (i *Idle) Default() error

func (*Idle) Enable

func (i *Idle) Enable() bool

func (*Idle) Get

func (i *Idle) Get() *dsd.IdleMotion

func (*Idle) GetFuncAndId

func (i *Idle) GetFuncAndId() (Function, int)

func (*Idle) GetSecond

func (i *Idle) GetSecond() int

func (*Idle) Set

func (i *Idle) Set(motion *dsd.IdleMotion) error

Jump to

Keyboard shortcuts

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