A590IS porting... - page 94 - DryOS Development - CHDK Forum  

A590IS porting...

  • 968 Replies
  • 362147 Views
*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #930 on: 31 / July / 2013, 18:16:23 »
Advertisements
@nafraf,

>If you confirm that sync LED and capture overrides  are working
>with version that I posted previously I submit the patch :)

Yes, it is working.
Blackhole checked it too.

>Patch includes CAMERA_MIN_DIST = 51, but
>CAMERA_MAX_DIST was not modified (52855). I'm still not sure
>about MAX, but I'm tempted to use default value.

For max, I would use 65535 since get_focus returns that when set to infinity using MF. 
For this small sensor A590is everything seems to be in focus past 30 feet :)


*

Offline blackhole

  • *****
  • 869
  • A590IS 101b
    • Planetary astrophotography
Re: A590IS porting...
« Reply #931 on: 31 / July / 2013, 21:13:50 »
Quote
I'm not photographer, probably I'm wrong  , but that value does not seems to be in mm as suggested in reply #917
I do not know, see the article "Override Subject Distance" in the CHDK user manual.

Quote
Yes, it is working.
Blackhole checked it too.
I did not tried build from nafraf , I tried own build.

« Last Edit: 31 / July / 2013, 21:17:33 by blackhole »

*

Offline nafraf

  • *****
  • 1308
Re: A590IS porting...
« Reply #932 on: 31 / July / 2013, 22:07:43 »
Quote
I'm not photographer, probably I'm wrong  , but that value does not seems to be in mm as suggested in reply #917
I do not know, see the article "Override Subject Distance" in the CHDK user manual.
You are right. It is in millimeters. Thanks.

*

Offline blackhole

  • *****
  • 869
  • A590IS 101b
    • Planetary astrophotography
Re: A590IS porting...
« Reply #933 on: 01 / August / 2013, 05:36:20 »
Quote
>Patch includes CAMERA_MIN_DIST = 51, but
>CAMERA_MAX_DIST was not modified (52855). I'm still not sure
>about MAX, but I'm tempted to use default value.
Far as I am noticed at the focal length of 5.8mm (35mm EFL) infinite focus begins from the SD value 10200,at this value you can hear and the last click of the mechanism for move the lens.I do not see the difference in sharpness if the SD value is greater than 10200 .

At the focal lenght of 76mm EFL infinite focus begins on the SD value 39600,here you can hear the last movement of the lens.No difference in sharpness if the SD value is greater than 39600

At the focal length of 23.2mm (140mm EFL) infinite focus is perfect on the SD value 62200, around these value you can hear the last click of the mechanism for move the lens.On the SD value 52200 is the penultimate click mechanism to move the lens, sharpness on this value and the values 52855 from the platform_camera.h not so good..

If you set the value of SD at 65535, the infinite focus is good at all focal lengths,I think it's true value.

Canon's GUI has 30 steps for focusing on fl35 and fl140, at fl76 has only 22 steps.
SD overrides have the 57 steps to infinity if Adj. value is set to 10, fl35, most of values has no effect on the lens shift.
« Last Edit: 01 / August / 2013, 06:31:44 by blackhole »


*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #934 on: 01 / August / 2013, 09:10:34 »
@nafraf,
I tried the one that you submitted to the trunk (trunk@2997) and the focusing to 52 and infinity doesn't work. I tested it in both in MF and AF.
I will be gone until late tonight, will do more testing then.

*

Offline nafraf

  • *****
  • 1308
Re: A590IS porting...
« Reply #935 on: 01 / August / 2013, 09:39:22 »
@nafraf,
I tried the one that you submitted to the trunk (trunk@2997) and the focusing to 52 and infinity doesn't work. I tested it in both in MF and AF.
Thanks for testing. I found a error in code_gen.txt. Please test this version.

*

Offline nafraf

  • *****
  • 1308
Re: A590IS porting...
« Reply #936 on: 01 / August / 2013, 19:47:37 »
A new version, code_gen for all functions, new hook implementation for capt_seq task and init_file_modules.
« Last Edit: 01 / August / 2013, 20:19:49 by nafraf »

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #937 on: 01 / August / 2013, 21:35:03 »
I tested  a590-101b-1.3.0-hooks.zip and it works fine now.
The only thing I would add to the code is a way not to
let the chdk ui to go bellow 52 for min. As it is now you
can go all the way down to 2. However, both 2 and 52 focus
down to two inches which is the min focus distance
in macro mode for the A590is.

Thanks, nafraf!


*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #938 on: 05 / August / 2013, 21:31:37 »
One thing, if I set Override Subj. Di. from the chdk menu
to 52 in rec mode, take a shot, then switch to play mode,
the 52 now becomes 101.
No big deal but I find this odd.


*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: A590IS porting...
« Reply #939 on: 08 / August / 2013, 07:06:42 »
One thing, if I set Override Subj. Di. from the chdk menu
to 52 in rec mode, take a shot, then switch to play mode,
the 52 now becomes 101.
No big deal but I find this odd.
How you can see override values in play mode? 101 is the subject distance from plane equivalent from 52 on zoom(0).

some comments for subject distance:

1. canon internal _GetFocusLensSubjectDistance() equal to PROPCASE_SUBJECT_DIST1 and PROPCASE_SUBJECT_DIST2 (here named SD_Plane  for subject distance from plane)

2. for camera user _GetFocusLensSubjectDistanceFromLens() for script commands get_focus(), set_focus(), distance overrides and DOF calculator equal to MF gauge (here named SD_Lens for subject distance from lens)

The difference between SD_Plane and SD_Lens is shooting_get_lens_to_focal_plane_width() (here named LP_Width). This value is dependent from zoom position.

history:
- trunk 295: add MAX_DIST as infinity distance for SD_Plane

- trunk 1570: add INFINITY_DIST to mark infinity for sd override

- Find MIN_DIST, MAX_DIST in context SD_Plane
  MIN_DIST = lowest possible value for SD_Plane on zoom(0)
  MAX_DIST = greatest possible value for SD_Plane on zoom(zoom_steps-1) for detect INFINITY_DIST
  see http://chdk.setepontos.com/index.php?topic=2509.msg79886#msg79886 and http://forum.chdk-treff.de/viewtopic.php?f=7&t=2632

- trunk 1690: add new DOF calculator by using SD_Lens context. MAX_DIST and sd override are in SD_Plane context.

- trunk 1719: switch sd override from SD_Plane to SD_Lens context

current:
A590 use MIN_DIST=51 in SD_Lens context, MAX_DIST=65535 in SD_Plane context and no infinity detection possible

code in SD_Plane context
- MAX_DIST, INFINITY_DIST on generic/wrapper.c lens_set_focus_pos()
- gui.c > line 2453: conf.subj_dist_override_value = MAX_DIST, need SD_Plane context for shooting_get_subject_distance_override_value()

code in SD_Lens context
- MAX_DIST on DOF calculator
- MIN_DIST, MAX_DIST on shooting_subject_distance_bracketing()
- MIN_DIST on gui_subj_dist_override_value_enum()

A good solution is using MIN_DIST, MAX_DIST in SD_Lens context. For SD_Plane context we add LP_Width -> MIN_PLANE_DIST = MIN_DIST + LP_Width, MAX_PLANE_DIST = MAX_DIST + LP_Width. The infinity detection is not perfect for small zoom positions, but in any case there is a valid maximum for SD_Plane context.

 

Related Topics