vwout / obs-visca-control

OBS plugin to control Visca-over-IP based cameras
https://obsproject.com/forum/resources/control-visca-over-ip-based-cameras.1173/
GNU General Public License v3.0
35 stars 6 forks source link

Add support for 5-nibble pan/tilt position commands #17

Closed vwout closed 1 month ago

vwout commented 2 months ago

The position inquiry and command actions come in two flavors. The difference is that the pan position is encoded as either 4 bytes (4x the lower nibble) or 5 bytes (5x the lower nibble).

This means the response to inquiry command 8x 09 06 12 FF is either y0 50 0p 0p 0p 0p 0p 0t 0t 0t 0t FF or y0 50 0p 0p 0p 0p 0t 0t 0t 0t FF

The related Absolute position command also varies. For the 4-nibble variant this is 8x 01 06 02 vv ww 0p 0p 0p 0p 0t 0t 0t 0t FF, so with a separate speed byte for pan and tilt, the 5-nibble variant only has one speed byte and a fixed 0x00 separator byte followed by 5 bytes that encode the panning value: 8x 01 06 02 vv 00 0p 0p 0p 0p 0p 0t 0t 0t 0t FF