Extend/retract lens with chdk over ptp - General Help and Assistance on using CHDK stable releases - CHDK Forum supplierdeeply

Extend/retract lens with chdk over ptp

  • 3 Replies
  • 4926 Views
Extend/retract lens with chdk over ptp
« on: 16 / September / 2011, 10:38:28 »
Advertisements
Is there any way to extend/retract the lens through lua so I could control this via chdkptp from a PC? I'm not asking about the zoom level (unless that IS how it would be done), I'm talking about controlling when the lens on my S95 retracts all the way into the body of the camera like when it is in playback mode. It is important for what I am doing to be able to give the camera a command and have the lens retract immediately. If I just set it back to playback mode, there is usually a delay before the retract happens.

*

Offline reyalp

  • ******
  • 14118
Re: Extend/retract lens with chdk over ptp
« Reply #1 on: 16 / September / 2011, 22:48:28 »
There is no CHDK function to do this. There may be an eventproc http://chdk.wikia.com/wiki/Event_Procedure
Don't forget what the H stands for.

Re: Extend/retract lens with chdk over ptp
« Reply #2 on: 16 / September / 2011, 23:15:43 »
If I just set it back to playback mode, there is usually a delay before the retract happens.

There is a Canon menu choice to set that delay to zero.   Canon's idea of "zero" might not be fast enough for you but if you have not seen that option,  it might be good enough ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14118
Re: Extend/retract lens with chdk over ptp
« Reply #3 on: 16 / September / 2011, 23:21:08 »
FWIW, on my a540, the following seems to work:

Code: [Select]
call_event_proc('RegisterShootSeqEvent')
call_event_proc('StoreLensForShutDown')
You only have to call the Register function once.

I didn't test this extensively. I would suggest making sure you are in play mode first, at the minimum. As always when calling eventprocs that manipulate hardware, use at your own risk.
Don't forget what the H stands for.


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal