Full-press without releasing half-press - page 2 - General Discussion and Assistance - CHDK Forum

Full-press without releasing half-press

  • 27 Replies
  • 19636 Views
*

Offline funnel

  • ****
  • 349
Re: Full-press without releasing half-press
« Reply #10 on: 14 / July / 2011, 05:52:16 »
Advertisements
I modified interval.bas from the chdk scripts folder.

« Last Edit: 14 / July / 2011, 06:34:30 by funnel »

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Full-press without releasing half-press
« Reply #11 on: 14 / July / 2011, 06:16:25 »
I modified interval.bas from the chdk scripts folder.



On the G12 if I set Interval (Seconds) to 1 I only get every 2nd image - is this normal (set to 2 it's fine).

In manual mode, with manual focus, Shoot count = 10, Interval = 2 seconds:
Original interval.bas takes 42 seconds to shoot 10 images.
Your new interval.bas with the patch applied takes 23 seconds.

(I also added a 'release "shoot_half"' after the loop).

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 fudgey

  • *****
  • 1705
  • a570is
Re: Full-press without releasing half-press
« Reply #12 on: 14 / July / 2011, 06:25:48 »
On the G12 if I set Interval (Seconds) to 1 I only get every 2nd image - is this normal (set to 2 it's fine).

I didn't look at the script but yes, probably it is normal to skip frames if you set too short interval. You can verify by emulating the script: half press, then start full pressing too quickly -- press 10 times as fast as you can and you probably end up with about two photos because the camera won't put your full presses on a queue.

Will have to see if get_shooting or something else can be used to detect when the cam is ready to shoot again...

*

Offline funnel

  • ****
  • 349
Re: Full-press without releasing half-press
« Reply #13 on: 14 / July / 2011, 06:28:03 »
For me, 10 images 2 seconds interval, normal 62 seconds, new 22 seconds. Used manual mode 1/160,f3.1,ISO800. Sometimes skips images if set to 1 or 0 seconds.

Quote
(I also added a 'release "shoot_half"' after the loop).
I added it and reuploaded the script.
« Last Edit: 14 / July / 2011, 06:35:58 by funnel »


*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Full-press without releasing half-press
« Reply #14 on: 15 / July / 2011, 05:51:21 »
Works very well for me.

I've changed the script slightly, to compare the results between "shoot" and "shoot_full_only".

msl
CHDK-DE:  CHDK-DE links

*

Offline funnel

  • ****
  • 349
Re: Full-press without releasing half-press
« Reply #15 on: 28 / July / 2011, 05:27:57 »
Will this ever be added to the trunk?

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Full-press without releasing half-press
« Reply #16 on: 28 / July / 2011, 06:36:02 »
Will this ever be added to the trunk?

Was added in CHDK-DE (rev. 711) for testing this feature.

msl
CHDK-DE:  CHDK-DE links

*

Offline openuas

  • **
  • 58
  • OpenUAS
    • OpenUAS
Re: Full-press without releasing half-press
« Reply #17 on: 23 / August / 2011, 14:01:02 »
That is great! Just starting my quest to optimize the speed of pictures taken per timeframe if remote trigger via USB is used. IMO it would be great if the improvement ends up in the regular CHDK asap. Used SDHC UHS 1, and the write speed is for sure not the bottleneck anymore according to my tests.


Re: Full-press without releasing half-press
« Reply #18 on: 26 / September / 2011, 07:06:13 »
Hi,

I've stumbled on this issue also when learning CHDK scripts.
I haven't tested the CHDK DE update.
The workaround for the AllBest CHDK (build 1324) would be to use set_aflock.
Example1:
Code: [Select]
@title shoot
rem Lets suppose shoot_half is pressed all the time.
rem (camera uses autofocus only one time)
rem Will the camera skip the autofocus process
rem if shoot_full is clicked / pressed?

rem Yes.
rem Glitch: click         "shoot_full"  and
rem         press/release "shoot_full"   will release
rem         the shoot_half button also. (unintuitive)
rem         Problem: if "shoot_half" is released after
rem taking the first picture, the camera will
rem have to refocus when taking second picture
rem (refocus using either shoot_half or shoot_full).
rem Conclusion: when I take the many pictures
rem => no skipping autofocus for the second
rem and later pictures possible.
rem Solution: set_aflock (see next script).

rem The script:
  print "shoot_half will be pressed in 5sec."
  sleep 5000
  press "shoot_half"
rem The camera catches focus.
  sleep 5000

  print "shoot_full will be pressed in 5 sec."
  sleep 5000
  press "shoot_full"
  sleep 5000
  release "shoot_full"
rem shoot_half button released also. (unintuitive)

  print "shoot_full will be pressed in 5 sec."
  sleep 5000
rem Camera catches focus again as shoot_half was already
rem (unintentionally) released earlier (unintuitive)
  click "shoot_full"
  sleep 5000
 
rem release shoot_half does nothing as shoot_half was already
rem released earlier by 'release "shoot_full"'
  release shoot_half
end

Example2: (set_aflock)
Code: [Select]
@title shoot - aflock
rem I can take multiple pictures without refocusing
rem using shoot_half, set_aflock and shoot_full.

  print "shoot_half will be pressed in 5sec."
  sleep 5000
  press "shoot_half"
rem The camera catches focus.
  sleep 3000
  release "shoot_half"
rem Lock the focus.
print "---Locking the focus.---"
  set_aflock 1

  print "shoot_full will be pressed in 5 sec."
  sleep 5000
  press "shoot_full"
rem shoot_full skips the autofocusing process
rem because of set_aflock. (success)
  sleep 5000
  release "shoot_full"

  print "shoot_full will be pressed in 5 sec."
  sleep 5000
  click "shoot_full"
  sleep 5000

print "---Unlocking the focus.--"
  set_aflock 0

  print "shoot_full will be pressed in 5 sec."
  sleep 5000
  click "shoot_full"
rem shoot_full uses autofocusing again, as AutoFocus lock
rem is disabled.
  sleep 5000
 
end

///edit: fixed the code as the 'rem ' sections were too long and the script would hang.
//edit2: tested in Av, M modes (a590), Focus: Macro.
« Last Edit: 26 / September / 2011, 07:22:37 by trismarck »

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Full-press without releasing half-press
« Reply #19 on: 27 / September / 2011, 05:46:32 »
Will this ever be added to the trunk?

Added in changeset 1344.

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