Got this intervalometer code off the main CHDK site, but didn't see much in the way of support there, so figured I'd post here in hopes that someone can help explain this to me... Here's the code:
--[[
@title Minimalistic Intervalometer
@param a Shooting interval, min
@default a 0
@param b ...sec
@default b 10
--]]
Interval = a*60000 + b*1000
function TakePicture()
press("shoot_half")
repeat sleep(50) until get_shooting() == true
press("shoot_full")
release("shoot_full")
repeat sleep(50) until get_shooting() == false
release "shoot_half"
end
repeat
StartTick = get_tick_count()
TakePicture()
sleep(Interval - (get_tick_count() - StartTick))
until false
Saved the code to a new .lua file (I called it interval.lua for easy ID...) Camera loads it fine when I boot into alt firmware. I even get the options for configuration within the firmware. Here's the question. When I power on and enable the CHDK alternate firmware, when I go to choose the intervalometer, I can set two options and here's where I get super confused...
Setting #1: Shooting Interval: (in minutes)
Setting #2: ...sec (
My first guess was the first was the interval between when shots are taken, and the latter is the number of seconds in total exposure. But when I set the first to "1" and the second to 300, figured I would get 5 pics. (one minute interval between shots for a total of 300 seconds or five minutes means 5 shots, right?) Nope! Got one shot. My mind is not grabbing this for some reason...help?