Open iam-TJ opened 8 months ago
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
In the README the example for PTZ Pan/Tilt shows the number before the direction
32
and describes it asSPEED
but the software reports:I also noticed that if doing
control 90 right
it seems to do a relative pan wheras ifcontrol 90 right 10
it appears to move to an absolute position (and speed is the same for both).