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

Setting focus from scripts or menus

  • 601 Replies
  • 206880 Views
*

Offline koshy

  • *****
  • 1096
Re: Setting focus from scripts or menus
« Reply #500 on: 12 / August / 2014, 10:05:29 »
Advertisements
To get on with it I did the IXUS models which complete the test run.

Here is IXUS 800

It crashed on:
RegisterShootSeqEvent subsection MFOn
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline koshy

  • *****
  • 1096
Re: Setting focus from scripts or menus
« Reply #501 on: 12 / August / 2014, 10:07:08 »
The remaining IXUS models didn't crash on anything.

Here are IXUS 55 and IXUS 75
For both AFL showed up during test but that section failed.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline koshy

  • *****
  • 1096
Re: Setting focus from scripts or menus
« Reply #502 on: 12 / August / 2014, 10:08:40 »
The remaining IXUS models didn't crash on anything.

Here are IXUS 950 and IXUS 960
For I950 AFL showed up during test but that section failed.
For I960 I didn't pay attention / have no note saying that... I can re-test if this actually is interesting.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline koshy

  • *****
  • 1096
Re: Setting focus from scripts or menus
« Reply #503 on: 12 / August / 2014, 10:09:23 »
The remaining IXUS models didn't crash on anything.

Here are IXUS 95 and IXUS 1000
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)


*

Offline koshy

  • *****
  • 1096
Re: Setting focus from scripts or menus
« Reply #504 on: 12 / August / 2014, 10:10:57 »
This should bring the remaining untested models down to these four which I don't have anymore:
A3000 / IXUS 240 / IXUS 300 / SX1
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline koshy

  • *****
  • 1096
Re: Setting focus from scripts or menus
« Reply #505 on: 14 / August / 2014, 11:41:19 »
I noticed that most of the CSV files I subsequently added here have 0 downloads. Now that I am done with the first round of testing this I figured it might be comfortable for WWZ to have a single archive attachment with all of them so here it is...
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

Re: Setting focus from scripts or menus
« Reply #506 on: 14 / August / 2014, 12:02:01 »
Thanks for that. At those point it's more for completeness to add these rather than something that's critical.

Things like the Powershot N ports and issues with exposure and focus in scripts take priority.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: Setting focus from scripts or menus
« Reply #507 on: 20 / August / 2014, 19:53:06 »
@WW
An idea for helping the investigation. There are event procedures dealing with the position of the focus lens. For example: GetFocusLensCurrentPosition. The position is (I think) a hardware counter, at least the mentioned eventproc queries an MMIO address above 0xc0280000. The focus lens position obviously won't tell us the subject distance, but can perhaps be useful when evaluating the result of set_focus. The returned values are only meaningful when the zoom lens stays in a determined position (@ wide angle for example).
GetFocusLensCurrentPosition has no arguments and is registered by Mecha.Create.


Re: Setting focus from scripts or menus
« Reply #508 on: 21 / August / 2014, 00:13:16 »
An idea for helping the investigation. There are event procedures dealing with the position of the focus lens.
This is a good idea.  An enhance test script that reports more about what the camera "thinks" it is doing might be valuable.

The big test suite we did turns out to have had two major limitations.  First of all, the test was done at distances from 1/2 meter to just over 1 meter.  And it depended on the camera's report of the actual subject distance - which we compared to the requested subject distance.   We learned a lot from that about which cameras would respond to what function calls.  But we did not ask anyone to check ( or calibrate ) the resulting images.  And we did not check that the camera would focus at infinity.

So I have a few working theories at the moment.
  • I suspect that the SD values reported by most cameras are poorly calibrated guesses.
  • When a camera is in auto focus mode, the focus algorithms adjust the lens mecha to get the sharpest image. The control loops work with lens mechanical position - not calibrated subject distance.
  • For cameras without MF capability, using CHDK to set a focus position gets you a lucky guess of how close the result will be compare to the requested distance
  • There is considerable variation between cameras of the same model and firmware release.

Having an enhanced test script like you suggest might help prove / disprove some of my theories.  I'll add it to my "to do" list.



Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline eponymous

  • *
  • 38
  • Canon A4000
Re: Setting focus from scripts or menus
« Reply #509 on: 29 / August / 2014, 17:12:24 »
I just tested my own A4000 with 101b version of the 1.3.0-3601 CHDK. No crashes for me when shooting was off. When I turned shooting on, it crashed after shot 1 of PT_MFOn. Attached is cdv containing both runs.

PS My camera starts up in review mode with this version of CHDK.
John

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal