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

Setting focus from scripts or menus

  • 601 Replies
  • 217588 Views
*

Offline nafraf

  • *****
  • 1308
Re: Setting focus from scripts or menus
« Reply #310 on: 09 / March / 2014, 16:31:34 »
Advertisements
A810 and SX240HS

Re: Setting focus from scripts or menus
« Reply #311 on: 09 / March / 2014, 16:33:44 »
ixus125/elph110hs test attached.  No crash!
A810 and SX240HS
This just keeps getting better and better.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Setting focus from scripts or menus
« Reply #312 on: 09 / March / 2014, 17:06:45 »
ixus700_sd500.

All tests still fail (camera is just not able to set focus from CHDK).

'set_focus' and 'PressSw1AndMf' no longer crash.
'set_aflock' still crashes.

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)

*

Offline srsa_4c

  • ******
  • 4451
Re: Setting focus from scripts or menus
« Reply #313 on: 09 / March / 2014, 17:42:19 »
a3400, r3376 from the autobuild
- doesn't crash when not actually shooting
- when shooting: crashes in the AF lock test _after_ the first shot

Re: Setting focus from scripts or menus
« Reply #314 on: 09 / March / 2014, 17:49:55 »
I retested with CHDK 1.3.0 3376 on my A4000.  I got a crash in the SS.Create/PT_MFOn test, so had to disable that to get the script to finish.

*

Offline nafraf

  • *****
  • 1308
Re: Setting focus from scripts or menus
« Reply #315 on: 09 / March / 2014, 18:10:55 »
a3400, r3376 from the autobuild
- doesn't crash when not actually shooting
- when shooting: crashes in the AF lock test _after_ the first shot
My previous test for A810 and SX240 were without full shoot.   :blink:
Now I retested with "Shoot Full [Yes]" and cameras crashed.
A810 crash after the first shot of set_aflock() test.
SX240 crashes after the first shot of set_aflock() and set_mf() tests

*

Offline reyalp

  • ******
  • 14128
Re: Setting focus from scripts or menus
« Reply #316 on: 09 / March / 2014, 18:35:14 »
Might be useful to get romlogs from these crashes that happen when actually shooting.

I also wonder if there could be interaction between using set_aflock and set_mf. It might be worth trying a normal (no override) shot after aflock, or multiple aflock shots.

I retested with shooting,

D10  all pass
A540 all pass
elph130 set focus crashes as expect, rest pass.
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
Re: Setting focus from scripts or menus
« Reply #317 on: 09 / March / 2014, 19:15:27 »
A810, 3376 from autobuild.

*

Offline reyalp

  • ******
  • 14128
Re: Setting focus from scripts or menus
« Reply #318 on: 09 / March / 2014, 19:47:43 »
A810, 3376 from autobuild.
MoveFocusLensToDistance -> sub_FFADA0DC -> sub_FFADA06C -> sub_FF953C94 assert at FF953CC0 checking the value of *(0x60EC + 4)

In capt seq, called from CHDK code, so this is probably the override hook.

This is possibly related to something I noticed the before, the set_now behavior of set_focus for MF only applies to cameras with cam_has_manual_focus, so even though we enter MF mode with eventprocs, it still tries to set focus in the hook. It would probably be worth changing this to just check MF mode, regardless of whether the camera has canon firmware MF, since the eventprocs set it.
Don't forget what the H stands for.

Re: Setting focus from scripts or menus
« Reply #319 on: 09 / March / 2014, 20:03:13 »
Attached is the SX160IS.


 

Related Topics


SimplePortal © 2008-2014, SimplePortal