Documentation ¶
Index ¶
- func Replace(ins *Blp)
- type Blp
- func (b *Blp) Control(trigger ptz.Trigger, function ptz.Function, funcID, cronID int, ...) error
- func (b *Blp) DefaultCron() error
- func (b *Blp) DefaultCruise() error
- func (b *Blp) DefaultIdle() error
- func (b *Blp) DefaultLine() error
- func (b *Blp) DefaultPowerUp() error
- func (b *Blp) DefaultTrace() error
- func (b *Blp) DeleteAllPreset() error
- func (b *Blp) DeleteCruise(id dsd.CruiseID) error
- func (b *Blp) DeletePreset(id dsd.PresetID) error
- func (b *Blp) GetIdle() (*dsd.IdleMotion, error)
- func (b *Blp) GetPowerUp() (*dsd.PowerUps, error)
- func (b *Blp) ListCron() []dsd.PtzAutoMovement
- func (b *Blp) ListCruise() []dsd.TourPreset
- func (b *Blp) ListLine() []dsd.LineScan
- func (b *Blp) ListPreset() []dsd.PresetPoint
- func (b *Blp) ListTrace() []trace.Record
- func (b *Blp) Model() string
- func (b *Blp) Position(pos *dsd.Position) error
- func (b *Blp) Restart() error
- func (b *Blp) SetCron(movement *dsd.PtzAutoMovement) error
- func (b *Blp) SetCruise(cruise *dsd.TourPreset) error
- func (b *Blp) SetIdle(motion *dsd.IdleMotion) error
- func (b *Blp) SetLine(scan *dsd.LineScan) error
- func (b *Blp) SetLineMargin(id dsd.LineScanID, limit int, clear bool) error
- func (b *Blp) SetPowerUp(ups *dsd.PowerUps) error
- func (b *Blp) SetPreset(id dsd.PresetID, name dsd.PresetName) error
- func (b *Blp) Start(id dsd.TraceID)
- func (b *Blp) StartCron()
- func (b *Blp) StartIdle() error
- func (b *Blp) StartPowerUp() error
- func (b *Blp) StartRecord(id dsd.TraceID) error
- func (b *Blp) State() *dsd.Status
- func (b *Blp) StopRecord(id dsd.TraceID)
- func (b *Blp) UpdateCruise(id dsd.CruiseID, name dsd.CruiseName) error
- func (b *Blp) UpdatePreset(id dsd.PresetID, name dsd.PresetName) error
- func (b *Blp) Version() string
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blp ¶
type Blp struct {
// contains filtered or unexported fields
}
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 (*Blp) DefaultCron ¶
func (*Blp) DefaultCruise ¶
func (*Blp) DefaultIdle ¶
func (*Blp) DefaultLine ¶
func (*Blp) DefaultPowerUp ¶
func (*Blp) DefaultTrace ¶
func (*Blp) DeleteAllPreset ¶
func (*Blp) ListCron ¶
func (b *Blp) ListCron() []dsd.PtzAutoMovement
func (*Blp) ListCruise ¶
func (b *Blp) ListCruise() []dsd.TourPreset
func (*Blp) ListPreset ¶
func (b *Blp) ListPreset() []dsd.PresetPoint
func (*Blp) SetLineMargin ¶
SetLineMargin limit 左右边界 1-左边界 2-右边界 clear 清除边界 true-清除 false-设置
func (*Blp) StartPowerUp ¶
func (*Blp) StopRecord ¶
func (*Blp) UpdateCruise ¶
func (*Blp) UpdatePreset ¶
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 (Operation) ValidateOperation ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.