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

Landscape Focus Bracketing Script

  • 247 Replies
  • 54325 Views
*

Online reyalp

  • ******
  • 14125
Re: Landscape Focus Bracketing Script
« Reply #100 on: 10 / January / 2020, 04:10:35 »
Advertisements
Do you know what the latest build does, relative to the previous builds?
There's a new build every time a change is checked in, but that doesn't mean it has any effect on existing ports.

As I posted earlier, I didn't see anything likely to impact g1x, or obvious candidates in changes to generic code. My suspicion is factors other than the build. Aside from settings and scene, there are sometimes bugs that only affect the port for one firmware version of a given port.
Don't forget what the H stands for.

Re: Landscape Focus Bracketing Script
« Reply #101 on: 10 / January / 2020, 04:34:52 »

@reyalp


Thanks for the update, let’s hope @c_joerg can find some time to investigate, as I said, I don’t see the error on my version.

*

Offline c_joerg

  • *****
  • 1251
Re: Landscape Focus Bracketing Script
« Reply #102 on: 10 / January / 2020, 05:08:38 »
There's a new build every time a change is checked in, but that doesn't mean it has any effect on existing ports.

My first test with the script was with Rev 5157. Problems where similar.
I still think it’s timing Problem

M100 100a, M3 121a, G9x II (1.00c), 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 #103 on: 10 / January / 2020, 11:34:59 »
@c_joerg

Quote
I still think it’s a timing issue
If so, I don’t understand why I never see the issue.
« Last Edit: 10 / January / 2020, 11:39:16 by pigeonhill »

*

Offline c_joerg

  • *****
  • 1251
Re: Landscape Focus Bracketing Script
« Reply #104 on: 11 / January / 2020, 13:54:50 »
I'd suggest a print before / after each point the script waits for get_shooting or a hook.
I have now inserted a text output before and after every get_shooting. Now I don't have the problem anymore (20 runs without problems).
Unfortunately, I don't have my second G1x with other firmware available at the moment.

If so, I don’t understand why I never see the issue.
Different conditions…
Different Firmware of G1x, only RAW, different size and speed of SD card…

M100 100a, M3 121a, G9x II (1.00c), 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 #105 on: 11 / January / 2020, 14:01:51 »
Quote
I have now inserted a text output before and after every get_shooting. Now I don't have the problem anymore (20 runs


I guess indicating a short delay needs to be inserted at a critical time?


As I say, with my setup and card etc, I don’t see the error.


Once again, thanks for all your investigations.

*

Offline c_joerg

  • *****
  • 1251
Re: Landscape Focus Bracketing Script
« Reply #106 on: 11 / January / 2020, 14:20:30 »
I guess indicating a short delay needs to be inserted at a critical time?

Yes, I think so, too...
I can live with the prints  ;)
M100 100a, M3 121a, G9x II (1.00c), 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 #107 on: 11 / January / 2020, 14:24:33 »
@c_joerg


Maybe, if you get the time, you could replace the prints with a delay and confirm this helps.


Despite not seeing the problem here, I’ll update the script according to your findings, ie for the record.


Cheers


Garry

*

Online reyalp

  • ******
  • 14125
Re: Landscape Focus Bracketing Script
« Reply #108 on: 11 / January / 2020, 16:13:14 »
I have now inserted a text output before and after every get_shooting. Now I don't have the problem anymore (20 runs without problems).
I would be quite surprised if a print triggered enough delay make a difference. My guess is there is some other factor involved, perhaps related to the scene you are shooting. OTOH, I have been surprised before ;)

Having timeouts for get_shooting loops would generally be a good practice.
Don't forget what the H stands for.

Re: Landscape Focus Bracketing Script
« Reply #109 on: 11 / January / 2020, 17:02:33 »
@reyalp

Quote
Having timeouts for get_shooting loops would generally be a good practice.

My current shoot function looks like the:

Code: [Select]
function myshoot() -- works inside X_bracket function
    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()
end
I guess you are suggesting putting in the repeats above.
But doesn't this ignore the question: why is it occurring. As I say, I use the same script, but have never seen the error that @c_joerg has observed.
Strange.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal