hdr1.lua - hdr.lua script upgrade - Completed and Working Scripts - CHDK Forum supplierdeeply

hdr1.lua - hdr.lua script upgrade

  • 18 Replies
  • 10755 Views
hdr1.lua - hdr.lua script upgrade
« on: 30 / November / 2014, 13:11:46 »
Advertisements
First of all, being new here, I'm not sure if it applies to share here this script.

I needed a simple hdr script with the flexibility of setting the number of steps, the step range, the hability to turn off auto focus and take the same number of underexposed and overexposed shots, as well as the capability of running on a A3100 IS camera.

I started from the shipped hdr.lua and added two new parameters: number of steps and an autofocus switch. I also used HDRlapse.lua as a guide to Lua commands I needed.

So, in regards to the way the script interfaces with hardware, this one has the same approach of the shipped hdr.lua.

Because of that, I believe this one should run on most cameras.

UPDATE: Added script version 1 (hdr1_v1).
Change log:

1 - Added First Shot Delay parameter
2 - Added Raw Delay parameter - In some cases (like mine), if you enable raw saving (outside the script, in CHDK standard menu), the script crashes. Adding a 2s delay (in my case) before each shot, solved the issue (Thanks to waterwingz). As noted below by philmoz, running the script as it was in its first version under chdk version 1.3 and raw enabled also solved the issue. (In this case, leave this parameter with the default setting of 0s)
« Last Edit: 10 / December / 2014, 10:14:50 by oneaty »
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

Re: hdr1.lua - hdr.lua script upgrade
« Reply #1 on: 07 / December / 2014, 15:30:33 »
Fyi, today I used this script and it randomly completely freezed my camera. (only a few times it completed ok)

The only way I could reset it was by removing the battery.

Turning it on again was no problem.

I'm investigating this and my first line of thought is to relate the issue to the fact that I had previously set CHDK to save raw image files in DNG format.
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

Re: hdr1.lua - hdr.lua script upgrade
« Reply #2 on: 07 / December / 2014, 16:15:03 »
I took a look at your code and there does not seem to be anything wrong with the script. 

I also tested it on my A1200 (with & without RAW/DNG enabled) and there were no crashes after several tests.

Can you get a ROMLOG?  Use the menu  Miscellaneous Stuff -> Debug -> Save ROM crash log  and post the resulting ROMLOG.LOG file as an attachment.

Ported :   A1200    SD940   G10    Powershot N    G16

Re: hdr1.lua - hdr.lua script upgrade
« Reply #3 on: 08 / December / 2014, 07:35:21 »
I took a look at your code and there does not seem to be anything wrong with the script. 

I also tested it on my A1200 (with & without RAW/DNG enabled) and there were no crashes after several tests.

Can you get a ROMLOG?  Use the menu  Miscellaneous Stuff -> Debug -> Save ROM crash log  and post the resulting ROMLOG.LOG file as an attachment.

Thanks for helping.

romlog follows attached
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA


Re: hdr1.lua - hdr.lua script upgrade
« Reply #4 on: 08 / December / 2014, 10:08:45 »
Crashing in spytask - which makes sense if there is a problem with saving RAW/DNG.

Can you confirm that the script runs properly without crashing if you do not save RAW/DNG?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: hdr1.lua - hdr.lua script upgrade
« Reply #5 on: 08 / December / 2014, 15:07:43 »
Yes, I confirm that.

However, the simple hdr.lua script works with raw.

I'm starting to think that it can be related to the raw saving delay inside those for loops.

I'll take a look at your yass4 code to see if I can understand how you handle raw inside a program loop.

Only a guess.
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

Re: hdr1.lua - hdr.lua script upgrade
« Reply #6 on: 08 / December / 2014, 16:18:22 »
Add a sleep(2000) after each shoot() function and see if that stabilizes things?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: hdr1.lua - hdr.lua script upgrade
« Reply #7 on: 08 / December / 2014, 16:21:14 »
The ROMLOG.LOG shows it's an FsIoNotify crash ???

What build (1.2 or 1.3) and version are you running?

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)


Re: hdr1.lua - hdr.lua script upgrade
« Reply #8 on: 09 / December / 2014, 05:24:45 »
What build (1.2 or 1.3) and version are you running?

a3100-100d-1.2.0-3643-full_ALPHA

UPDATE: Only now I noticed I had a wrong information regarding chdk build on my signature. Updated.
« Last Edit: 09 / December / 2014, 05:33:00 by oneaty »
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: hdr1.lua - hdr.lua script upgrade
« Reply #9 on: 09 / December / 2014, 06:06:43 »
What build (1.2 or 1.3) and version are you running?

a3100-100d-1.2.0-3643-full_ALPHA

UPDATE: Only now I noticed I had a wrong information regarding chdk build on my signature. Updated.

You need to switch to the latest version of 1.3 to fix this.

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)

 

Related Topics