feat(SetPTZPos):增加 PTZ 操作的可配置性
- 在 SetPTZPos 函数中添加 Action 参数,用于控制 PTZ 操作类型- 更新 Core.go 中的 SetPTZPOS 函数,根据 Action 参数执行不同操作 - 修改 BallCamera.go 中的 SetPTZPos调用,传入 Action 参数
This commit is contained in:
		| @@ -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 | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kunmeng
					kunmeng