EasyManua.ls Logo

Canon Camera - Page 167

Canon Camera
257 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
158 CHAPTER 5 Scripting
if met then
local next_event =
start_ticks + met
for k=1, n, 1 do
if sleep_until(next_event)
then
print "Aborted"
next_event = nil
break
end
shoot()
h, m, s, t = tohms(
next_event-start_ticks)
print(string.format(
"Frame %u, MET %u:%u:%u.%u",
frame, h, m, s, t))
frame = frame + 1
if n > 2 then
next_event = next_event +
idiv((n-k-1)*i1 +(k-1)*i2,
n-2)
else
next_event = next_event + i1
end
end
if not next_event then
break
end
end
end
io.close(file)
-- restore display mode
set_display_mode(old_display_mode)
-- restore AF lock mode
set_aflock(0)
end

Table of Contents

Related product manuals