Developer-friendly / experimental branch (dataghost) - page 14 - CHDK Releases - CHDK Forum  

Developer-friendly / experimental branch (dataghost)

  • 143 Replies
  • 97254 Views
Re: Developer-friendly / experimental branch (dataghost)
« Reply #130 on: 03 / November / 2011, 10:27:27 »
Advertisements
Maybe I am doing something wrong here but lets see if I can give you my approach.

1. Load CHDK
2. Change to P mode
3. Set Manual focus
4. Enter script
5. Execute

At the end the focus never changes. Could you check this and tell me if I did anything wrong?

I re-tried it on my G12 and it works fine.
Does it print lines of two numbers of the screen? Do both numbers change?

Phil.

Yes 2 numbers. Only first one changes. Second one is the value of where the maunal focus was set last.
Are there any other CHDK main menu features that need to be set like over ride on or off?
Is your firmware 1.00g?
G12 1.00g

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Developer-friendly / experimental branch (dataghost)
« Reply #131 on: 03 / November / 2011, 16:23:11 »

Yes 2 numbers. Only first one changes. Second one is the value of where the maunal focus was set last.
Are there any other CHDK main menu features that need to be set like over ride on or off?
Is your firmware 1.00g?


Did you leave the camera in manual focus mode when running the script? The Canon manual focus bar should still on screen.
AFAIK the other CHDK settings should not affect the script.
My camera has 1.00c firmware.

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: Developer-friendly / experimental branch (dataghost)
« Reply #132 on: 03 / November / 2011, 16:34:02 »

Yes 2 numbers. Only first one changes. Second one is the value of where the maunal focus was set last.
Are there any other CHDK main menu features that need to be set like over ride on or off?
Is your firmware 1.00g?


Did you leave the camera in manual focus mode when running the script? The Canon manual focus bar should still on screen.
AFAIK the other CHDK settings should not affect the script.
My camera has 1.00c firmware.

Phil.

Manual focus bar stays on the the screen. But doesn't move. I can move it by turning the jog dial  while the script is running and the second values do then change. Might there be a problem in the 1.00g firmware where the setfocus command is not working? Could I debug this? I finally got the development environment set up and am able to compile CHDK, I just need to be guided in the right direction.
« Last Edit: 03 / November / 2011, 17:59:49 by arne182 »
G12 1.00g

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Developer-friendly / experimental branch (dataghost)
« Reply #133 on: 03 / November / 2011, 18:23:53 »
Manual focus bar stays on the the screen. But doesn't move. I can move it by turning the jog dial  while the script is running and the second values do then change. Might there be a problem in the 1.00g firmware where the setfocus command is not working? Could I debug this? I finally got the development environment set up and am able to compile CHDK, I just need to be guided in the right direction.

Well there's definitely something different - if I turn the jogdial while that script is running the camera crashes (not suprising since two things are trying to set the focus at the same time).

One thing, check the Canon settings.
I use:
AF Frame = FlexiZone
AF-Point Zoom = Off
Servo AF = Off
Continuous AF = Off
AF-Assist Beam = Off
MF-Point Zoom = Off
Safety MF = Off

Perhaps one of these settings is different.

If that still doesn't work then we'll have to dig into the code to see what's going on.

Phil.

Edit: Did a quick test and 'Continuous AF' may be the culprit. If I enable this I get the same behviour as you.
« Last Edit: 03 / November / 2011, 18:52:09 by philmoz »
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: Developer-friendly / experimental branch (dataghost)
« Reply #134 on: 06 / November / 2011, 07:36:22 »
Manual focus bar stays on the the screen. But doesn't move. I can move it by turning the jog dial  while the script is running and the second values do then change. Might there be a problem in the 1.00g firmware where the setfocus command is not working? Could I debug this? I finally got the development environment set up and am able to compile CHDK, I just need to be guided in the right direction.

Well there's definitely something different - if I turn the jogdial while that script is running the camera crashes (not suprising since two things are trying to set the focus at the same time).

One thing, check the Canon settings.
I use:
AF Frame = FlexiZone
AF-Point Zoom = Off
Servo AF = Off
Continuous AF = Off
AF-Assist Beam = Off
MF-Point Zoom = Off
Safety MF = Off

Perhaps one of these settings is different.

If that still doesn't work then we'll have to dig into the code to see what's going on.

Phil.

Edit: Did a quick test and 'Continuous AF' may be the culprit. If I enable this I get the same behviour as you.

Definitively the Continous AF was causing it no to focus manually.
The focus values are here http://pastebin.com/Rum6cXsw
I have already tried my hand at scripting
http://chdk.wikia.com/wiki/UBASIC/Scripts:_Focus_Bracketing_with_set_focus_and_get_focus

I was working on one that particularly works for the G12, but the one that I posted will always work. I wonder if I can add some user interactivity into my script.  8)

I have attached my first DOF stack photo.

Here is part of the G12 specific code making a few checks on the properties before trying something that won't work

Code: [Select]
rem ------- camera specific section / omit if you are not using G12 -------
y=0
get_prop 133 x
if x=1 then y=y+1 else print "Not in MF mode"
get_prop 12 x
if x=0 then y=y+1 else print "Continuous AF is on!"
get_prop 277 x
if x=0 then y=y+1 else print "Safety MF is on!"
if y=3 then goto "continue"
 end
rem ------- camera specific section / omit if you are not using G12 -------

:continue

« Last Edit: 07 / November / 2011, 05:13:54 by arne182 »
G12 1.00g

Re: Developer-friendly / experimental branch (dataghost)
« Reply #135 on: 27 / March / 2014, 10:22:20 »
Hi Dataghost,

on the first page of this page I read following:

Quote
- IS Lens adjustments. On my S5IS, the lens is offset a bit and after quite some research I came up with a way to properly center it. The camera has a built-in 'center IS lens' function, but that centers the IS lens at the IS lens center point, which is not the camera lens center point (or so it seems). It's possible to manually adjust the IS lens (implemented) and to automatically center it (not implemented in this branch yet).

Do you think this will work also on my Powershot S110? I don't know if the S110 has a built in 'center IS lens' function - is it normally avaliable in the tools menu?

Thanks for any information.



2 x IXUS 860IS 100c
2 x Powershot S110 103a

Re: Developer-friendly / experimental branch (dataghost)
« Reply #136 on: 27 / March / 2014, 14:41:59 »
Hi Dataghost, ...
fyi : a quick look at dataghost's profile suggests that he/she has not connected to this forum in over 3.5 years.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Developer-friendly / experimental branch (dataghost)
« Reply #137 on: 27 / March / 2014, 15:24:04 »
I don't know if the S110 has a built in 'center IS lens' function

Well, the S100 has ISAutoCenter.


*

Offline reyalp

  • ******
  • 14111
Re: Developer-friendly / experimental branch (dataghost)
« Reply #138 on: 27 / March / 2014, 16:55:07 »
Do you think this will work also on my Powershot S110? I don't know if the S110 has a built in 'center IS lens' function - is it normally avaliable in the tools menu?
FWIW, many of the IS related functions are available as eventprocs: http://chdk.wikia.com/wiki/Event_Procedure so much of the stuff discussed in earlier in this thread can now be done from Lua.

Since these may directly control hardware, caution is advised.
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: Developer-friendly / experimental branch (dataghost)
« Reply #139 on: 27 / March / 2014, 18:42:41 »
@mr.burns
In case it wasn't mentioned before, you can find most event procedure names (and addresses) in the funcs_by_address.csv and funcs_by_name.csv files for a camera, look for names ending with '_FW'. Remove the _FW ending if you'd lke to use them from Lua.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal