neolink icon indicating copy to clipboard operation
neolink copied to clipboard

README: PTZ command

Open iam-TJ opened this issue 2 years ago • 1 comments

In the README the example for PTZ Pan/Tilt shows the number before the direction 32 and describes it as SPEED but the software reports:

Usage: neolink ptz <CAMERA> control <AMOUNT> <COMMAND> [SPEED]

I also noticed that if doing control 90 right it seems to do a relative pan wheras if control 90 right 10 it appears to move to an absolute position (and speed is the same for both).

iam-TJ avatar Oct 31 '23 00:10 iam-TJ

Should be amount first, just some doc changes that happened along the way.

The speed one is a little more difficult to address. Only a small number of camera support speed for the PTZ so speed is ignored most of the time

To do PT we effectively send this xml to the camera

<?xml version="1.0" encoding="UTF-8" ?>
<body>
<PtzControl version="1.1">
<channelId>0</channelId>
<speed>32</speed>
<command>right</command>
</PtzControl>
</body>

We change the speed value to what ever you provide. Notice that there is no amount, to control how far we go we actually have to send two command. Left....wait....Stop. how long we wait for we calulate with a bit of math and the speed provided. So being absolute makes no sense since a position is never sent

QuantumEntangledAndy avatar Oct 31 '23 00:10 QuantumEntangledAndy