powerUp

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 Function

type Function int

Function 开机功能

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

func (Function) Validate

func (f Function) Validate() error

type PowerUp

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

func New

func New(ups *dsd.PowerUps) *PowerUp

func (*PowerUp) Default

func (u *PowerUp) Default() error

func (*PowerUp) Get

func (u *PowerUp) Get() (*dsd.PowerUps, error)

func (*PowerUp) Set

func (u *PowerUp) Set(ups *dsd.PowerUps) error

Jump to

Keyboard shortcuts

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