Setting focus from scripts or menus - page 41 - General Discussion and Assistance - CHDK Forum

Setting focus from scripts or menus

  • 601 Replies
  • 217710 Views
Re: Setting focus from scripts or menus
« Reply #400 on: 15 / June / 2014, 10:43:55 »
Advertisements
Per this post :  1.3 development planning thread it's probably time to look at the outstanding issues with the 1.3.0 SD override upgrades.

Currently, most of the changes have been related to the use of the set_focus() function in scripting. This seems to be mostly complete other than a few isolated issues with some cameras ( A1200 for example).

Other things that use the shooting_set_focus() and probably need to be looked at are :

Have I missed any ?

Changes to consider :
  • simply lock out calls to shooting_set_focus() unless a call to the equivalent of get_sd_over_modes() and checks of the appropriate prop_case indicate the call will succeed.
  • if needed and not enabled, enable MF mode (or AFL if MF not available) in the action stack when is_sd_override_enabled is true prior to shooting and disable it afterwards
  • add menu items to allow AFL or MF to be enabled manually (not sure how this would work - when would it take effect?)

Other options ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline mmcon

  • *
  • 10
Re: Setting focus from scripts or menus
« Reply #401 on: 16 / June / 2014, 04:17:09 »
Hi,

I am using the IXUS200-sd980 . I am having trouble with subject distance override via the menu with chdk 1.3 3462 version loaded(even with the stable 1.2 version). Essentially I am not able to change the step value (to 1,10,100 via left, right) and subject distance (with zoom lever) and the set distance doesnt seem to be overriden

I am attaching my csv's using v3.1 of the script which came with the downloaded chdk version, v2.12 of the script mentioned at the beginning of the thread and also v1.2 of the script mentioned in the chdk wikia http://chdk.wikia.com/wiki/CHDK_Manual_Focus_and_Subject_Distance_Overrides page. Since the minimum focus distance in normal mode for the camera is 50 cm and in macro mode 5-50cm. I did two tests

100 200 300 mm and 100 500 900 mm. I did the shooting in P mode without flash and normal mode(not macro) shooting


v1.2

100, 200 300 mm
set_aflock() mode
set 100
before 100 after 100 okay
before 100 after 100 locked
set 200
before 200 after 200 okay
before 200 after 200 locked
set 300
before 307 after 307 fault
before 307 after 307 unlocked
Done

100, 500, 900 mm
set_aflock() mode
set 100
before 100 after 100 okay
before 100 after 100 locked
set 500
before 493 after 493 fault
before 493 after 493 unlocked
set 900
before 877 after 877 fault
before 877 after 877 unlocked
Done

v2.12
1. warning not in p mode
2.set_focus() only
passed
3.set_aflock()
passed
.
.
.
RegisterShootSeqEvent failed
7.Done

v3.1
1.warning: not in P mode
2.set_focus() only
passed
3.set_aflock()
passed
4.set_mf()
passed
5.done

More detailed csv is attached.

The spreadsheet
https://docs.google.com/spreadsheet/ccc?key=0Aoneohrr2KUBdHp1bkJ2LXN4RzExWUp1OW43REtLZ2c#gid=1 appears to mentions that the camera has decent support for manual focus overrides.

So is the problem then due to beta nature of chdk for ixus200 OR am I missing something here.



Re: Setting focus from scripts or menus
« Reply #402 on: 16 / June / 2014, 08:28:29 »
I am using the IXUS200-sd980 . I am having trouble with subject distance override via the menu with chdk 1.3 3462 version loaded(even with the stable 1.2 version).
We have not really done any work on the menu settings for SD override.  They may be very broken from camera to camera.

Quote
Essentially I am not able to change the step value (to 1,10,100 via left, right) and subject distance (with zoom lever) and the set distance doesnt seem to be overriden
Are you trying to do this in the "Enhanced Photo Operations" menu or via <ALT> mode shortcuts?

Quote
So is the problem then due to beta nature of chdk for ixus200 OR am I missing something here.
The beta designation really means nothing. Other than that the original person doing the port forgot to remove it.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline ahull

  • *****
  • 634
Re: Setting focus from scripts or menus
« Reply #403 on: 16 / June / 2014, 11:14:36 »
Quote
So is the problem then due to beta nature of chdk for ixus200 OR am I missing something here.
The beta designation really means nothing. Other than that the original person doing the port forgot to remove it.

I'm not sure there is ever really a "Beta version", the development process is more Agile than a traditional Alpha - Beta - Release "Waterfall" process.. 
« Last Edit: 16 / June / 2014, 11:49:23 by ahull »

*

Offline mmcon

  • *
  • 10
Re: Setting focus from scripts or menus
« Reply #404 on: 18 / June / 2014, 11:53:30 »
Quote
Are you trying to do this in the "Enhanced Photo Operations" menu or via <ALT> mode shortcuts?


Sorry, I didnt test this properly. With 1.3 3462 version (as also 1.2 ), I was able to change the subject distance in the "Enhanced Photo Operations" menu and this DOES get reflected in the picture being taken. So the "Enhanced Photo Operations" menu is working well, however I am unable to change SD and step size in an interactive manner via zoom lever and left/right when taking a picture. I am hence unable to use it meaningfully especially when doing macro photography. As you mentioned this appears to be menu side codework.

S95 and A480 seem to work out of the box as discussed here

S95
http://www.youtube.com/channel/UCugOsG6rAwx6QzpnCg-t8yw
which references
http://chdk.setepontos.com/index.php?topic=5883.0
A480
www.youtube.com/watch?v=ciAV0ng1KkI

I would like it working on the sd980 too. What would be the code to change? Is it at a more fundamental level involving memory addresses relevant to the model.

The <ALT> mode shortcuts for focus modifications are not working, I believe these are activated only when the manual focus mode is selected (according to the manual). Since the camera doesnt have a manual focus mode, this could be the reason for the dysfunction. I havent tried scripting to check its functionality though (set_mf() to be used?)

Also could you give an explanation of the fields in the google worksheet? and What would be good cameras models for manual focus hacking wrt video and images.

*

Offline mmcon

  • *
  • 10
Re: Setting focus from scripts or menus
« Reply #405 on: 18 / June / 2014, 12:53:54 »
The option to change subject distances override values through chdk "enhanced options menu" now appears to be broken(from 3465 atleast) was working in 1.3 3462.The value is stuck at zero. The zoom lever functionality is not working in either.

*

Offline reyalp

  • ******
  • 14128
Re: Setting focus from scripts or menus
« Reply #406 on: 18 / June / 2014, 16:15:17 »
The option to change subject distances override values through chdk "enhanced options menu" now appears to be broken(from 3465 atleast) was working in 1.3 3462.The value is stuck at zero. The zoom lever functionality is not working in either.
If those are the correct numbers, some other factor must be involved. Nothing remotely related to SD override changed between 3462 and 3465.
Don't forget what the H stands for.

*

Offline mmcon

  • *
  • 10
Re: Setting focus from scripts or menus
« Reply #407 on: 19 / June / 2014, 01:51:54 »
Ok. I tested this more thoroughly. There is something funny happening in in the subject override distance menu code in in "enhanced photo operations" in trunk rev 3462 and 3464(must be the case with 3465 too I guess dont know since which rev the problem might have started) 
I am not able to change the value from 0 at the beginning with LEFT/RIGHT. I am able to cycle through off, on, Inf. 

However once the value changes from zero (will explain this below) I am able to change it with LEFT/RIGHT.

The way this change occurs is due to setting Inf in the sd override menu, focusing at a distance, going back into SD override menu, a value other zero is now displayed when I cycle through Off/On from Inf. This was the case with rev. 3464. With 3462, I had to enable DOF calc display ON, as well as turn on someother override functionality likeISO initially for the value to change from zero when cycling through OFF/ON/INF in the SD override menu. Might be other something else that triggers this too. But the main point is the inconsistency in the entering the values across the new revs.

I dont know if I made sense. I can get by with this bug. Thought will report on it.
« Last Edit: 19 / June / 2014, 02:05:20 by mmcon »

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Setting focus from scripts or menus
« Reply #408 on: 19 / June / 2014, 05:28:11 »
Ok. I tested this more thoroughly. There is something funny happening in in the subject override distance menu code in in "enhanced photo operations" in trunk rev 3462 and 3464(must be the case with 3465 too I guess dont know since which rev the problem might have started) 
I am not able to change the value from 0 at the beginning with LEFT/RIGHT. I am able to cycle through off, on, Inf. 

However once the value changes from zero (will explain this below) I am able to change it with LEFT/RIGHT.

The way this change occurs is due to setting Inf in the sd override menu, focusing at a distance, going back into SD override menu, a value other zero is now displayed when I cycle through Off/On from Inf. This was the case with rev. 3464. With 3462, I had to enable DOF calc display ON, as well as turn on someother override functionality likeISO initially for the value to change from zero when cycling through OFF/ON/INF in the SD override menu. Might be other something else that triggers this too. But the main point is the inconsistency in the entering the values across the new revs.

I dont know if I made sense. I can get by with this bug. Thought will report on it.

If the SD override value is very small, and you zoom the lens to the telephoto end, then the SD override distance can become less than the distance from the sensor to the front of the lens. In this case the menu displays 0. If you keep adjusting it, the value will eventually change.

This should be fixed in revision 3468 (1.3 only for now).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Setting focus from scripts or menus
« Reply #409 on: 19 / June / 2014, 05:53:32 »
Ixus 125 hs (firm 101a)
Here my MF test with trunk rev 3462 (modded by waterwingz - DISP key to VIDEO key for RAW toggle).
The SD override thing does not set the AF at all despite submitted values  :(
Just a working "infinite lock" would be enough for night shoots. The AF of this little camera hangs in low lights.

Thanks for your work

 

Related Topics


SimplePortal © 2008-2014, SimplePortal