A4000IS porting thread - page 16 - DryOS Development - CHDK Forum

A4000IS porting thread

  • 205 Replies
  • 60947 Views
Re: A4000IS porting thread
« Reply #150 on: 03 / July / 2013, 12:37:01 »
Advertisements
Newbie at CHDK. Is it possible to control F-Stop? If so, I haven't found it yet. Any help?
Very few low-end Canon P&S cameras have a variable aperature so there is nothing CHDK can do to change that.   On camera's that actually have an aperature, CHDK let's you override the setting - its called Av override.

Incidentally, changes you see in the f-stop in your pictures are really the "effective f-stop" at different zoom lens positions.   
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A4000IS porting thread
« Reply #151 on: 03 / July / 2013, 12:40:33 »
I guess the point of the issue then is using the Intervalometer and trying to get it to focus on something distant. Any suggestions or am I not interpreting the problem correctly?

Re: A4000IS porting thread
« Reply #152 on: 03 / July / 2013, 13:53:48 »
You can manually set the camera to focus on distant subjects.  Press the part of the pad that looks like a flower, and then select the icon that looks like a pair of mountains.  Left button, right button, funcset, if you want to do it from a script.

Re: A4000IS porting thread
« Reply #153 on: 03 / July / 2013, 13:57:27 »
What do you mean by "left button, right button, funcset if you want to do it from a script"?


Re: A4000IS porting thread
« Reply #154 on: 03 / July / 2013, 14:02:28 »
What do you mean by "left button, right button, funcset if you want to do it from a script"?

If you do it by hand on the camera, that's the series of operations it takes to put the camera into that mode.  You can "push" the same buttons via a script, if you're using one already.

Re: A4000IS porting thread
« Reply #155 on: 03 / July / 2013, 14:18:25 »
What do you mean by "left button, right button, funcset if you want to do it from a script"?

If you do it by hand on the camera, that's the series of operations it takes to put the camera into that mode.  You can "push" the same buttons via a script, if you're using one already.
Pushing buttons tends to be very camera specific.  Its usually better if you set the focus directly in your script using the set_focus()  and set_aflock() commands.
« Last Edit: 03 / July / 2013, 14:20:06 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A4000IS porting thread
« Reply #156 on: 03 / July / 2013, 14:48:21 »
Pushing buttons tends to be very camera specific.  Its usually better if you set the focus directly in your script using the set_focus()  and set_aflock() commands.

Yeah, but I haven't had any success doing that on the A4000.

Re: A4000IS porting thread
« Reply #157 on: 04 / July / 2013, 17:52:09 »
Have you tried adjusting the focus while the camera is in AF lock? Also, make sure that you don't have any continuous AF mode active (including servo AF, anything that tries to focus on faces or objects, etc), and that the particular recording mode you are using allows AF lock (try it by hand, not script).

If I call set_focus() and then call set_aflock(1), the camera crashes when shoot is called.  This happens even when I make those calls inside the press/release("shoot_half") calls.  It seems that if the lens has to physically move when the lock is on, that's when the crash occurs.

I have all the auto stuff turned off in the Canon menus, and I looked through the CHDK menus and didn't see any overrides enabled there either.

I tried manually pressing the left button while I had the shoot button half-pressed, and the camera displayed that AFL was on, so it looks like my recording mode allows locking (also backed up when I call set_aflock(1) inside the press/release("shoot_half") calls).

Although the camera doesn't have a Manual Focus setting in the UI, I tried setting it via the Propcase calls. get_focus_mode() showed it was set to '1' (MF),  but it didn't seem to affect the behaviour in any way.  I also tried enabling "Use Zoom buttons for MF" in the "CHDK Settings" menu, but the zoom switch didn't seem to affect the focus at all when I had the shoot button half pressed.

P.S. I should say that I'm using Program mode in all of this.
« Last Edit: 04 / July / 2013, 18:10:29 by rkomar »


*

Offline srsa_4c

  • ******
  • 4450
Re: A4000IS porting thread
« Reply #158 on: 04 / July / 2013, 20:32:23 »
Have you tried adjusting the focus while the camera is in AF lock?
If I call set_focus() and then call set_aflock(1), the camera crashes when shoot is called.
What about doing this in reverse order? First AF lock, and then setting the focus? Also, IMHO it's not necessary to hold various buttons while activating AF lock (via set_aflock() ) or setting focus override.

edit: does the camera crash if you set a focus override and then shoot (by hand) - without any AF lock?
« Last Edit: 04 / July / 2013, 21:00:44 by srsa_4c »

Re: A4000IS porting thread
« Reply #159 on: 04 / July / 2013, 21:45:16 »
What about doing this in reverse order? First AF lock, and then setting the focus? Also, IMHO it's not necessary to hold various buttons while activating AF lock (via set_aflock() ) or setting focus override.

edit: does the camera crash if you set a focus override and then shoot (by hand) - without any AF lock?

If I call set_aflock(1) first, then call set_focus(403), and then shoot, the camera crashes.

As far as holding down buttons goes, I was just explaining how you lock the focus using the Canon UI.  The left button AFLock only works when the shoot button is half-pressed (which makes sense, because that's the only time you have some kind of manual control of the focus).  I realize that you can call set_aflock(1) at other times.  As I described earlier, if I call, set_focus(), then shoot, then set_aflock(1), the camera keeps working and the focus is locked, but usually not at the value passed in via set_focus().

I can't do the last test easily yet.  I'm using CHDKPTP to pass the commands, and the physical buttons don't work when the USB is plugged in.  I'll have to write a lua script to set the focus before I can test that.

 

Related Topics