*getPosition

Configuration Article | CA-20220907-TP-13

VDG Sense | API | Functions | Camera Control

This command returns the current position of the dome.

Request

command=getPosition&serverid=[UID]&cameraid=[UID]

parameter

type

remarks

parameter

type

remarks

serverid

[UID]

unique server id

cameraid

[UID]

unique camera id

Response

<result errorcode="0">   <pan>900</pan>   <tilt>-450</tilt>   <zoom>0</zoom>   <focus>0</focus>   <iris>0</iris> </result>

node

value

remarks

node

value

remarks

/result

@errorcode

[number]

See error codes below

pan

[-1800 – 1800]

pan position

tilt

[-1800 – 1800]

tilt position

zoom

[-1 – 1000]

zoom position, -1 = auto zoom

focus

[-1 – 1000]

focus position, -1 = auto focus

iris

[-1 – 1000]

iris position, -1 = auto iris

error code

description

remarks

error code

description

remarks

0

Ok

Ok, no error

-2

No device

No device found for the supplied cameraid/deviceid.

-18

General error

An undefined error occured

-19

No dome

The device is not a dome device

-21

Device not active

The device is not active in the current profile and cannot produce any results

Â