bitfocus / companion-module-ptzoptics-visca

MIT License
9 stars 13 forks source link

zoom not working as expected #5

Open Degeert opened 4 years ago

Degeert commented 4 years ago

I am very happy with all the functionalities but i am missing one thing... The pan & tilt function has the possibility to adjust the speed of panning & tilting. I don't see a function to set the speed of the zoom. Is it not there or do i not see it? It would be awesome to have control over the zoomspeed in the same way as it can control pan & tilt.

hjoelr commented 3 years ago

@Degeert You should be able to add the use the P/T Speed or Preset Drive Speed actions to accomplish what you want.

image

If all else fails, you can use the custom command once #6 is merged in to send any command you want to the camera based on PTZOptics VISCA or IP command document.

Gartom commented 3 years ago

It seems like the VISCA over IP command for zoom speed is missing in the documentation for PTZOptics cameras: https://ptzoptics.com/wp-content/uploads/2020/08/PTZOptics-VISCA-over-IP-Rev-1_2-8-20.pdf

I have posted a question in a PTZOptics forum thread, asking what the command should be. I am waiting for the post to be accepted and answered: https://help.ptzoptics.com/support/discussions/topics/13000022947/page/2

Edit 2021-04-22: My question has not been accepted/added yet in the PTZOptics forum. I have asked the question again.

Gartom commented 3 years ago

I got a response in the PTZOptics forum that the zoom speed can be sent as a parameter when sending the VISCA commands: bild

I didn't notice this before, but it means that selectable zoom speed can be implemented in the same way as P/T speed has been implemented.

FS00001 commented 3 years ago

Thank you for the supplied information. What I don't understand is how I should make use of the supplied content. In Companion I made use of PTZoptics : Visco instance. The option as shown by hjoelr for speed setting does not appear in my case.

PTZ-optics-speed

The PTZOptics VISCA or IP command document link shows a 404 error. Did I do something wrong?

BlakesHeaven commented 6 months ago

Hello, may I respectfully ask if zoom speed control has been implemented already, is to be done soon or won't be done?

I appreciate there is the custom command option, but it is rarther cumbersome and seems a little hackish.

Many thanks.

BlakesHeaven commented 6 months ago

@Gartom, I have just added a comment to #18 after doing a little more digging.

@FS00001 and anyone else that finds this, you currently need to add a Custom Command action, eg "PTZ_Cam1: Custom command" 81 01 04 07 20 FF to zoom out slowly. note 2 = zoom out and the 0 following the 2 is very slow... 81 01 04 07 27 FF to zoom out very fast, the 7 following the 2 is very fast... integers in between give a total of 8 speeds. 81 01 04 07 30 FF to zoom in slowly, note 3 = zoom in image

Hopefully, #18 will be made available.