feat(SetPTZPos):增加 PTZ 操作的可配置性

- 在 SetPTZPos 函数中添加 Action 参数,用于控制 PTZ 操作类型- 更新 Core.go 中的 SetPTZPOS 函数,根据 Action 参数执行不同操作
- 修改 BallCamera.go 中的 SetPTZPos调用,传入 Action 参数
This commit is contained in:
kunmeng
2025-07-04 16:36:37 +08:00
parent 1e3d98c5a7
commit d7cbd9e3b2
2 changed files with 19 additions and 7 deletions

View File

@@ -246,7 +246,7 @@ func (this *BallCamera) PtzGotoPut(Action int, P, T, Z float64) error {
pBuf = append(pBuf, pBufv)
tBuf = append(tBuf, tBufv)
zBuf = append(zBuf, zBufv)
err = SetPTZPos(this.userId, pBuf, tBuf, zBuf)
err = SetPTZPos(this.userId, Action, pBuf, tBuf, zBuf)
if err != nil {
return err
}