Go to documentation repository
Page History
GET http://IP-address:port/prefix/control/telemetry/position/TELEMETRYCONTROLID
Tip |
---|
TELEMETRYCONTROLID - template from Get list of telemetry devices for specified video source. wzór z Pozyskaj listę urządzeń telemetrii dla określonego źródła wideo. |
Przykładowe zapytanieSample request:
GET http://127.0.0.1:80/control/telemetry/position/Server1/DeviceIpint.25/TelemetryControl.0
Sample responsePrzykładowa odpowiedź:
Code Block |
---|
{ "pan": 2000 ,"tilt": 5100 ,"zoom": 0 ,"mask": 7 } |
The mask value should be converted to binary.
The first bit of the binary number will refer to pan, the second to tilt, the third to zoom.
The 1 value means that the corresponding component of the video camera works, 0 means it does not work.
For example, if mask = 6, then in the binary system it is 110, which means that pan and tilt work on the camera, and zoom does not.
Wartość dla mask powinna zostać przekonwertowana na wartość binarną.
Pierwszy bit liczby binarnej określa pan, drugi określa tilt, a trzeci bit określa zoom.
Wartość 1 oznacza, że odpowiedni komponent kamery funkcjonuje; 0 oznacza, że komponent nie działa.
Przykładowo jeśli mask = 6, w kodzie binarnym jest to 110, co oznacza, że pan oraz tilt działają dla kamery, a zoom nie.
Dla kamery z bezwzględną telemetrią koordynaty będą względneFor a camera with absolute telemetry, the coordinates will be relative.
Code Block |
---|
{ "pan": 5.53611111111111109e-02, "tilt": 1.31111111111111116e-02, "zoom": 0.00000000000000000e+00, "mask": 7 } |
...