bitfocus / companion-module-canon-ptz

MIT License
9 stars 6 forks source link

Last Used Feedback not showing up #10

Closed davidjoshuaford closed 2 years ago

davidjoshuaford commented 2 years ago

The dropdown menu for the "Last Used Feedback" does not present any options.

ptz

Same for the Focus Speed Setting. Also:

focus speed

Thank you for your work!

josephdadams commented 2 years ago

I can try to fix these. I no longer have access to the camera so it’s not possible to test.

josephdadams commented 2 years ago

I believe I have all of this sorted for you now. I'll push it out and you can check it.

davidjoshuaford commented 2 years ago

Feedback for Last Recall Preset is now working!

The one that is not is the Action "Lens - Set Focus Speed"

focus speed

Is it possible to have an action to set the Lens Focal distance to a numeral millimeter?

josephdadams commented 2 years ago

Pushing a fix for the set focus speed.

I'm not sure if it's possible to set that value or not. Do you know the value range from min to max?

You should be able to test it by going to http://192.168.1.5/-wvhttp-01-/control.cgi?c.1.focus.length=value

Joseph

josephdadams commented 2 years ago

Did you try the latest fix - and were you able to test the focal distance paramter?

davidjoshuaford commented 2 years ago

I'm testing build 3976 right now - "Lens - Set Focus Speed" dropdown menu is working correctly :)

In the variable feedback for focus, it seems Near is 2048, and Far is 987.

I've tested my particular camera at http://192.168.8.101/-wvhttp-01-/control.cgi?c.1.focus.length=value

it returns:

--- WebView Livescope Http Server Error --- Parameter Missing 1 parameter(s)

josephdadams commented 2 years ago

Just confirming that you used something like: http://192.168.8.101/-wvhttp-01-/control.cgi?c.1.focus.length=987 (where you replaced value with 987. I know it's dumb but I have to ask. If so, then it probably just doesn't support setting this property this way.

davidjoshuaford commented 2 years ago

Good question - I have tried adding in 987, as well as the value readout from the Variable (ie, currently the module variable feedback says the focal value is 1456), but it still gives me the same error:

--- WebView Livescope Http Server Error --- Parameter Missing 1 parameter(s)

Do you know what those numbers refer to? I'm guessing not mm since they appear inverted from near to far.

josephdadams commented 2 years ago

I have no idea. It's just what is returned by that property. It could just be something internal used on the web interface.

josephdadams commented 2 years ago

I messaged you on Slack - just making sure you saw it.