Landscape Focus Bracketing Script - page 10 - Completed and Working Scripts - CHDK Forum

Landscape Focus Bracketing Script

  • 152 Replies
  • 9166 Views
Re: Landscape Focus Bracketing Script
« Reply #90 on: 09 / January / 2020, 12:49:07 »
Advertisements
@c_joerg


I have CHDK 1.5.0 and, as I say, the script works fine.


Not sure what else I can do to help resolve your issues.


Cheers


Garry

*

Offline Caefix

  • ***
  • 235
  • Sorry, busy deleting test shots...
Re: Landscape Focus Bracketing Script
« Reply #91 on: 09 / January / 2020, 12:54:09 »
The following error or errors occurred while posting this message:
The message body was left empty.  :blink:
Does it help ?
All lifetime is a loan from eternity.

Re: Landscape Focus Bracketing Script
« Reply #92 on: 09 / January / 2020, 13:03:17 »
I have CHDK g1x 100e 1.5.0 5399
Not sure what else I can do to help resolve your issues.
If I found some time; I would put some text messages in like
Code: [Select]
Shot Number
Shot at focus=xxxx,
Next shot at focus=xxx
Script finished because….
I still think the script waits here, because of different timing (SD Card)
Code: [Select]
        local prevcnt=hook_shoot.count()
    local rawprevcnt=hook_raw.count()
    press'shoot_full_only'
    repeat sleep(10) until prevcnt ~= hook_shoot.count()
    release'shoot_full_only'
    repeat sleep(10) until rawprevcnt ~= hook_raw.count()
May be a timeout with error messages  in this loop,


M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Landscape Focus Bracketing Script
« Reply #93 on: 09 / January / 2020, 13:53:12 »
@c_joerg


I have 5153 and it works.


I’m not sure what 5399 does, compared to 5153.


Re: Landscape Focus Bracketing Script
« Reply #94 on: 09 / January / 2020, 14:32:29 »
Maybe someone who understands the core CHDK can throw some light on this, ie why version 5133 works but 5399?

Re: Landscape Focus Bracketing Script
« Reply #95 on: 09 / January / 2020, 14:35:12 »
Attached the script with prints and log files.
I run the script three times in MF Mode. The first two times it works.
The third time, the script makes only a Bookend Shot and not more. I have to stop the script by pressing shot bottom.
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline reyalp

  • ******
  • 12650
Re: Landscape Focus Bracketing Script
« Reply #96 on: 09 / January / 2020, 14:38:07 »
I have 5153 and it works.
I’m not sure what 5399 does, compared to 5153.
The difference might be camera settings, or even scene. I don't see any significant changes to the G1x port between 5153 and now.

If the hooks aren't being reached in some situation, that's probably a CHDK bug. The other obvious place it could maybe wait forever is waiting for get_shooting to change. That could be a CHDK bug, or possible related to scene and canon settings.

If you use hookutil instead of waiting for hook_*.count directly, you get timeout support free. You do have to set the hook in that case.
Code: [Select]
require'hookutil'
hook_shoot.set(100) - wait up to 100ms in hook
...
hook_shoot.wait_ready{timeout=2000} -- wait two seconds. Default is 10 sec.
hook_shoot.continue()
...
By default, it will use error() if the hook times out. You can make it non-fatal with
Code: [Select]
if not hook_shoot.wait_ready{timeout=1000,timeout_error=false} do
...

edit:
updated code, probably safer to explicitly use continue()
« Last Edit: 09 / January / 2020, 14:49:02 by reyalp »
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 12650
Re: Landscape Focus Bracketing Script
« Reply #97 on: 09 / January / 2020, 14:40:42 »
Attached the script with prints and log files.
I'd suggest a print before / after each point the script waits for get_shooting or a hook.
Don't forget what the H stands for.


Re: Landscape Focus Bracketing Script
« Reply #98 on: 10 / January / 2020, 03:11:13 »
I'd suggest a print before / after each point the script waits for get_shooting or a hook.

For the hook, I did it already:

 
Code: [Select]
   print("Shot 1",os.date("%X"))
    local prevcnt=hook_shoot.count()
    local rawprevcnt=hook_raw.count()
    press'shoot_full_only'
    repeat sleep(10) until prevcnt ~= hook_shoot.count()
    release'shoot_full_only'
    repeat sleep(10) until rawprevcnt ~= hook_raw.count()
    local dof=get_dofinfo()
   
    --print("TV=",tv96_to_usec(get_tv96())," AV=",av96_to_aperture(get_av96())," SV=",sv96_to_iso(get_sv96()))
    print("Hyp=",dof.hyp_dist," FL=",dof.focal_length," EFL=",dof.eff_focal_length)
    print("F=",dof.focus," Near=",dof.near," Far=",dof.far)
But when the script stops, I don’t see the print  “Shot 1”. So the problem is not on this point.

I will add print also for the get_shooting.

M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Landscape Focus Bracketing Script
« Reply #99 on: 10 / January / 2020, 03:52:31 »
@c_joerg


Thanks for putting effort into resolving this. As it seems to only be an issue on the latest build, which I don’t have, I’m afraid I can’t add much.


BTW I didn’t know there was a new build  ;)


Do you know what the latest build does, relative to the previous builds?

 

Related Topics