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

Developer-friendly / experimental branch (dataghost)

  • 143 Replies
  • 92051 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Developer-friendly / experimental branch (dataghost)
« Reply #120 on: 28 / October / 2011, 04:54:49 »
Advertisements

So is there a way to force the flash to fire anyway in auto mode? In the other modes you can use the canon options to force flash but in auto that feature is not available. That is why it is important that it works on Auto mode.


Yes, it's called P mode :)
AUTO means simply that, the camera makes all the decisions for you.
If you want to take control of the camera you have to switch to P or one of the creative modes.

Quote

CHDK menues yes, I am using 1386 from the autobuild could get 1388. I assume you don't have a Eyefi card. The wifi symbol is a constantly changing one and until it is finished uploading the photos the icon is constantly changing and on some occation it takes some or all of the menu with it. I have taken some pictures for you to see what I mean. It is especially bad when you are in the games option.

That's normal. CHDK is not integrated into the Canon OSD so there's only so much that can be done. If the Canon OSD erases part of the screen CHDK has no easy way to know about it.
There is code to detect a full screen erase and redraw the menus; but this is not active for games.
It might be possible to implement a screen redraw function for each game and have the system call this if it detects a full screen erase; but it won't help if only part of the screen is erased.

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 #121 on: 28 / October / 2011, 05:34:34 »

I understand the point of P mode, and the point of Auto mode. It is just nice to be able to control the flash anyway in auto mode, because that is why I assume it has been coded into the CHDK, for that exact perpose. In P mode I don't need CHDK to control the flash, I can do that with Canon's options.

I wonder if there is a way to detect that the wifi logo is moving.

Would it be advisable to redraw the menu after a certain amount of time, say every second or minute? To make sure that it is on top.
G12 1.00g

Re: Developer-friendly / experimental branch (dataghost)
« Reply #122 on: 01 / November / 2011, 10:58:52 »
I have now moved on to checking manual focus on the G12. I have not been able to get it to focus for me. Not in auto scene P or M mode.

Method,
1. Load up build 0.99 revision 1390
2. Set camera mode to P.
3. Set manual focus to some extremely close
4. Use CHDK to force focus at infinity http://chdk.wikia.com/wiki/CHDK_firmware_usage/AllBest#Quick-Set_Hyperfocal_.26_Infinite_Manual_Focus_Distances
5. Take picture using ultra intervalometer

If I am not mistaken the focus does get re-evaluated by the camera and then is used to take the picture ignoring the overide value. Can you confirm this.
G12 1.00g

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Developer-friendly / experimental branch (dataghost)
« Reply #123 on: 01 / November / 2011, 15:00:42 »
The camera has to be in manual focus mode for the focus to remain locked.
If you set the camera back to autofocus, or the script unlocks the AF mechanism, then the camera will refocus on each shot.

If the Canon manual focus bar is not displayed when the script is running then AF has been re-enabled.

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 #124 on: 01 / November / 2011, 17:33:43 »
The camera has to be in manual focus mode for the focus to remain locked.
If you set the camera back to autofocus, or the script unlocks the AF mechanism, then the camera will refocus on each shot.

If the Canon manual focus bar is not displayed when the script is running then AF has been re-enabled.

Phil.

Will try and do some Bracketing to see if I can control the focusing distance with P mode. Have you used the Subject Distance Bracketing before?
G12 1.00g

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Developer-friendly / experimental branch (dataghost)
« Reply #125 on: 01 / November / 2011, 18:08:17 »
I haven't used it a lot; but from memory it worked when I tested it.
The main limitation is that the G12 has discrete positions of the focus motor - it is not a continuous focus system.
See http://chdk.setepontos.com/index.php?topic=6570.msg69571#msg69571 where I posted a graph of the requested versus actual focus distance graph (created using set_focus and get_focus in a script).
You have to be careful that your bracketing distance is large enough to actually select different focus points in the camera.

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 #126 on: 02 / November / 2011, 06:56:16 »
I haven't used it a lot; but from memory it worked when I tested it.
The main limitation is that the G12 has discrete positions of the focus motor - it is not a continuous focus system.
See http://chdk.setepontos.com/index.php?topic=6570.msg69571#msg69571 where I posted a graph of the requested versus actual focus distance graph (created using set_focus and get_focus in a script).
You have to be careful that your bracketing distance is large enough to actually select different focus points in the camera.

Phil.

The graphic looks great. Do you still have the actual numbers that was used to plot the graph? Thanks for the information. So you could only do about 80 different distances, sounds like a good script to make sure these are fixed for the G12.

The Infinity focus worked very well on P mode, here is a timelapse that I did yesterday.
01/11/2011 Berlin Stars
G12 1.00g

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Developer-friendly / experimental branch (dataghost)
« Reply #127 on: 02 / November / 2011, 07:19:25 »
I don't have the numbers but the script I used is below. This is Lua code so save it with a .lua extension in the scripts directory.
The range of values to set_focus is from 0 - 65535 which will take a long time to run depending on the amount you increment each time (set to 10 below).
You can run it multiple times with different increments and start values to map out the focus distances.

Code: [Select]
--[[
Write actual versus requested focus distances
Results are written to LOGS/LOG_0001.TXT
--]]

print_screen(1)
f = 0
repeat
set_focus(f)
sleep(100)
print(string.format("%d %d",f,get_focus()))
f = f + 10
until f >= 65535

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 #128 on: 02 / November / 2011, 16:31:12 »
I don't have the numbers but the script I used is below. This is Lua code so save it with a .lua extension in the scripts directory.
The range of values to set_focus is from 0 - 65535 which will take a long time to run depending on the amount you increment each time (set to 10 below).
You can run it multiple times with different increments and start values to map out the focus distances.

Code: [Select]
--[[
Write actual versus requested focus distances
Results are written to LOGS/LOG_0001.TXT
--]]

print_screen(1)
f = 0
repeat
set_focus(f)
sleep(100)
print(string.format("%d %d",f,get_focus()))
f = f + 10
until f >= 65535

Phil.

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?
G12 1.00g

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Developer-friendly / experimental branch (dataghost)
« Reply #129 on: 03 / November / 2011, 06:47:20 »
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.
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)

 

Related Topics