blp

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(ins *Blp)

Types

type Blp

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

func Instance

func Instance() *Blp

func New

func New(limit *dsd.Limit, comName string, comCfg *dsd.PTZ, ps []dsd.PresetPoint, ls []dsd.LineScan, cs []dsd.TourPreset,
	ups *dsd.PowerUps, motion *dsd.IdleMotion, m []dsd.PtzAutoMovement, records []trace.Record) *Blp

func NewBlp

func NewBlp(st *ptz.State, sCtl *serial.Serial, preset *preset.Preset,
	line *lineScan.LineScan, cruise *cruise.Cruise, power *powerUp.PowerUp, idle *idle.Idle, cron *cron.Cron,
	trace *trace.Trace) *Blp

func (*Blp) Control

func (b *Blp) Control(trigger ptz.Trigger, function ptz.Function, funcID, cronID int, speed ptz.Speed) error

func (*Blp) DefaultCron

func (b *Blp) DefaultCron() error

func (*Blp) DefaultCruise

func (b *Blp) DefaultCruise() error

func (*Blp) DefaultIdle

func (b *Blp) DefaultIdle() error

func (*Blp) DefaultLine

func (b *Blp) DefaultLine() error

func (*Blp) DefaultPowerUp

func (b *Blp) DefaultPowerUp() error

func (*Blp) DefaultTrace

func (b *Blp) DefaultTrace() error

func (*Blp) DeleteAllPreset

func (b *Blp) DeleteAllPreset() error

func (*Blp) DeleteCruise

func (b *Blp) DeleteCruise(id dsd.CruiseID) error

func (*Blp) DeletePreset

func (b *Blp) DeletePreset(id dsd.PresetID) error

func (*Blp) GetIdle

func (b *Blp) GetIdle() (*dsd.IdleMotion, error)

func (*Blp) GetPowerUp

func (b *Blp) GetPowerUp() (*dsd.PowerUps, error)

func (*Blp) ListCron

func (b *Blp) ListCron() []dsd.PtzAutoMovement

func (*Blp) ListCruise

func (b *Blp) ListCruise() []dsd.TourPreset

func (*Blp) ListLine

func (b *Blp) ListLine() []dsd.LineScan

func (*Blp) ListPreset

func (b *Blp) ListPreset() []dsd.PresetPoint

func (*Blp) ListTrace

func (b *Blp) ListTrace() []trace.Record

func (*Blp) Model

func (b *Blp) Model() string

func (*Blp) Position

func (b *Blp) Position(pos *dsd.Position) error

TODO delete

func (*Blp) Restart

func (b *Blp) Restart() error

func (*Blp) SetCron

func (b *Blp) SetCron(movement *dsd.PtzAutoMovement) error

func (*Blp) SetCruise

func (b *Blp) SetCruise(cruise *dsd.TourPreset) error

func (*Blp) SetIdle

func (b *Blp) SetIdle(motion *dsd.IdleMotion) error

func (*Blp) SetLine

func (b *Blp) SetLine(scan *dsd.LineScan) error

func (*Blp) SetLineMargin

func (b *Blp) SetLineMargin(id dsd.LineScanID, limit int, clear bool) error

SetLineMargin limit 左右边界 1-左边界 2-右边界 clear 清除边界 true-清除 false-设置

func (*Blp) SetPowerUp

func (b *Blp) SetPowerUp(ups *dsd.PowerUps) error

func (*Blp) SetPreset

func (b *Blp) SetPreset(id dsd.PresetID, name dsd.PresetName) error

func (*Blp) Start

func (b *Blp) Start(id dsd.TraceID)

func (*Blp) StartCron

func (b *Blp) StartCron()

func (*Blp) StartIdle

func (b *Blp) StartIdle() error

func (*Blp) StartPowerUp

func (b *Blp) StartPowerUp() error

func (*Blp) StartRecord

func (b *Blp) StartRecord(id dsd.TraceID) error

func (*Blp) State

func (b *Blp) State() *dsd.Status

func (*Blp) StopRecord

func (b *Blp) StopRecord(id dsd.TraceID)

func (*Blp) UpdateCruise

func (b *Blp) UpdateCruise(id dsd.CruiseID, name dsd.CruiseName) error

func (*Blp) UpdatePreset

func (b *Blp) UpdatePreset(id dsd.PresetID, name dsd.PresetName) error

func (*Blp) Version

func (b *Blp) Version() string

type Operation

type Operation int
const (
	DirectionUp        Operation = iota // 上
	DirectionDown                       // 下
	DirectionLeft                       // 左
	DirectionRight                      // 右
	DirectionLeftUp                     // 左上
	DirectionRightUp                    // 右上
	DirectionLeftDown                   // 左下
	DirectionRightDown                  // 右下
	FocusFar                            // 焦距拉远
	FocusNear                           // 焦距拉进
	ZoomTele                            // 视角变窄
	ZoomWide                            // 视角变宽
	IrisClose                           // 光圈关闭
	IrisOpen                            // 光圈打开
)

云台操作

func (Operation) ValidateDirection

func (o Operation) ValidateDirection() error

func (Operation) ValidateOperation

func (o Operation) ValidateOperation() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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