rem EOSS_Interval_ICSTARS
rem version 1.4
rem For Canon SD630
rem Camera must be in auto mode

rem Initially 1 photo every 10 seconds for 180 photos or 30 minutes
rem After 30 minutes switch to 1 photo every 30 seconds for 86 minutes
rem Roughly 15 minutes before landing back to 1 photo every 10 seconds for 400 photos

@title EOSS Intervals
@param a Shoot count
@default a 500
@param b Interval (Minutes)
@default b 0
@param c Interval (Seconds)
@default c 25

d=1000

sleep d

t=b*60000+c*1000
if a<2 then let a=10
if t<1000 then let t=1000

print "Total time:", t*a/60000; "min", t*a%60000/1000; "sec"

sleep 3000

click "display"
click "display"

rem rapid shoot cycle while close to ground
shoot
for n=2 to 180
    sleep 5000
    shoot
next n
sleep 5000

rem 30 minutes of photos taken

rem slower shoot cycle after 30 minutes during ascent
shoot
for n=2 to 150
    sleep t
    shoot
next n
sleep 5000

rem additional 75 minutes for a total of 105 minutes of photos

rem rapid shoot cycle during descent and landing
shoot
for n=2 to 450
    sleep 5000
    shoot
next n

rem additional 75 minutes for a total of 180 minutes of photos

end
