Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommAttribute ¶
type CommAttribute struct { BaudRate BaudRate `json:"BodeRate"` // 波特率(1200,2400, 4800,9600,19200,38400,57600,115200) DataBits DataBit `json:"DataBits"` // 数据位数(5,6,7,8) Parity ParityBit `json:"Parity"` // 奇偶校验选项(0:无,1:奇校验,2:偶校验,3:标志校验,4:空校验) StopBits StopBit `json:"StopBits"` // 停止位(0:停止位1;1:停止位1.5;2:停止位2) }
CommAttribute 串口属性
func NewCommAttribute ¶
func NewCommAttribute() *CommAttribute
func (*CommAttribute) Validate ¶
func (c *CommAttribute) Validate() error
type PTZ ¶
type PTZ struct { Enable bool `json:"Enable"` // 使能 Protocol Protocol `json:"Protocol"` // 协议类型: 0 PELCOD, 1 PELCOP Address Address `json:"Address"` // PELCO协议: 485地址,0-255 Attribute *CommAttribute `json:"Attribute"` // 串口属性 }
PTZ 串口配置
func (*PTZ) ConvertAddress ¶
type Position ¶
type Position struct { Pan float64 `json:"Pan" validate:"required,gte=0,lt=360"` // 水平坐标 Tile float64 `json:"Tile" validate:"required,gte=0,lte=90"` // 垂直坐标 Zoom float64 `json:"Zoom" validate:"required,gte=0,lte=20"` // 变倍 }
Position 云台坐标与放大倍数
type PresetPoint ¶
Click to show internal directories.
Click to hide internal directories.