Setting Av - Possible bug - AllBest's Builds - CHDK Forum
supplierdeeply

Setting Av - Possible bug

  • 6 Replies
  • 7298 Views
Setting Av - Possible bug
« on: 17 / December / 2007, 11:32:07 »
Advertisements
I haven't got any response on this yet on my original post (http://chdk.setepontos.com/index.php/topic,194.0.html) so I don't know for certain if it's a bug or if I'm just misunderstanding something.

I can't get the Av overrides set using scripting (regular range ones set fine and shutter overrides are ok, setting them in the menu works fine as well).  Should the Av overrides be able to be set in scripting?  What are the proper parameters?

Re: Setting Av - Possible bug
« Reply #1 on: 17 / December / 2007, 11:58:06 »
Hi! :)
Can u give me example of your script?

Re: Setting Av - Possible bug
« Reply #2 on: 17 / December / 2007, 13:15:41 »
Hi! :)
Can u give me example of your script?

Using the attached code...
I did this on my A570 (S2 is at home today).
Mode: M
Tv:1/60
ISO:400
Full zoom
I set Av to 6.3 so I could see if it was being overriden.

First of all using the menu override for Av 11.0 (+4EV), the shot came out as expected, the override worked.


Using the script with all other settings exactly as above:
For a=1 or 2 (Av=5.5, 8.0) the aperture was set accordingly with b=1,2,4 (set_av96_direct, set_av96 and set_user_av96) but not for b=3 (set_av) as should be expected, set_av wants the ID whereas the other 3 want the *96 values.

For a=3 (Av=11.0, which should expect a *96 value of 672) the aperture remained at the default Av=6.3

I hope this can help track down the problem, if it is my end or yours.

Also, from the way the settings seem to get applied, am I to assume that Av resolution is limited to 1/3EV steps (*32) and not the full 96 steps?

Code: [Select]
@title Av

@param a Av (1,2,3)
@default a 1
@param b Set type  param
@default b 1


if a = 1 then d = 480
if a = 2 then d = 576
if a = 3 then d = 672

if b = 1 then set_av96_direct d
if b = 2 then set_av96 d
if b = 3 then set_av d
if b = 4 then set_user_av96 d

if a = 1 then print "480, Av=5.6"
if a = 2 then print "576, Av=8"
if a = 3 then print "672, Av=11"

if b = 1 then print "av96_direct"
if b = 2 then print "av96"
if b = 3 then print "av"
if b = 4 then print "user_av96"

  shoot

end

Re: Setting Av - Possible bug
« Reply #3 on: 18 / December / 2007, 04:53:48 »
I set Av to 6.3 so I could see if it was being overriden.
First of all using the menu override for Av 11.0 (+4EV), the shot came out as expected, the override worked.
Hellow, barberofcivil!
Are u sure, that really was set exactly Av 11 through the menu override? May be 9 or 10? To define hardware limits that is resided in your camera i suggest you to use av -bracketing with step of 1/3 in wide and tele states of objective. Moreover real value of aperture you can observe in misc. values AFTER the shot (while camera is in review mode)
Also, from the way the settings seem to get applied, am I to assume that Av resolution is limited to 1/3EV steps (*32) and not the full 96 steps?
Yes. That's true. Av resolution is limited to 1/3Ev. However other values of the av step was not tested until now. Multiplier of 92 (av92) is only reflection of the method of saving of this values in Canon firmware.
Can u try this version of the script (for different states of zoom im M and P modes)?
Code: [Select]

@title Av
@param a Av (1,2,3,4)
@default a 1

if a = 1 then d = 576
if a = 2 then d = 608
if a = 3 then d = 640
if a = 4 then d = 672

if a = 1 then print d, " Av=8"
if a = 2 then print d, " Av=9"
if a = 3 then print d, " Av=10"
if a = 4 then print d, " Av=11"

set_av96_direct d

shoot

end

set_av96 - this command operates with limited Canon set of values only (273-576)
set_user_av96 - is similarly but additionally it changes the user value of av (in priority or manual modes)

Thanks
« Last Edit: 18 / December / 2007, 07:25:39 by Allbest »


Re: Setting Av - Possible bug
« Reply #4 on: 18 / December / 2007, 15:44:29 »
I set Av to 6.3 so I could see if it was being overriden.
First of all using the menu override for Av 11.0 (+4EV), the shot came out as expected, the override worked.
Hellow, barberofcivil!
Are u sure, that really was set exactly Av 11 through the menu override? May be 9 or 10? To define hardware limits that is resided in your camera i suggest you to use av -bracketing with step of 1/3 in wide and tele states of objective. Moreover real value of aperture you can observe in misc. values AFTER the shot (while camera is in review mode)
Yes.  The exif is even imprinted by it.  I olny used 11 as an example, but the same is true of the other Av settings.
I'm not familiar with how the internal build code works, is it similar (i.e. use the *96 settings)?  I notice when looking at the extra Av info displayed, the actual Av (as reported by the build) is -1/6EV (-16 steps) vs the "market" setting.
eg: Av=10 (*96=640) shows as Av=9.5 (which relates to a setting of 624).
Also, from the way the settings seem to get applied, am I to assume that Av resolution is limited to 1/3EV steps (*32) and not the full 96 steps?
Yes. That's true. Av resolution is limited to 1/3Ev. However other values of the av step was not tested until now. Multiplier of 92 (av92) is only reflection of the method of saving of this values in Canon firmware.
Can u try this version of the script (for different states of zoom im M and P modes)?
Code: [Select]
...

Tried for each setting and they don't do anything for me.
I also make sure that the menu override does work for the same settings for reference, as I do know that they get limited by certain parameters.


set_av96 - this command operates with limited Canon set of values only (273-576)
set_user_av96 - is similarly but additionally it changes the user value of av (in priority or manual modes)

Thanks

I assumed this should be the correct one, I just wanted to try them all just in case.


Can anyone else confirm the operation (or non-operation) of the scripts?

Re: Setting Av - Possible bug
« Reply #5 on: 28 / December / 2007, 08:37:49 »
Hi, barberofcivil!
FIXED: Please try new build http://malbe.nm.ru/chdk/
Thanks!
« Last Edit: 28 / December / 2007, 08:45:49 by Allbest »

Re: Setting Av - Possible bug
« Reply #6 on: 03 / January / 2008, 12:20:07 »
Hi, barberofcivil!
FIXED: Please try new build http://malbe.nm.ru/chdk/
Thanks!

Awesome!  Seems to work as advertised now.  Thanks.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal