USB trigger - General Help and Assistance on using CHDK stable releases - CHDK Forum

USB trigger

  • 2 Replies
  • 2478 Views
USB trigger
« on: 17 / August / 2009, 15:56:34 »
Advertisements
Hello

I have somme trouble with a script.
What I would like :
I put the camera (A570IS) in continuous mode
I start the script
As long as USB power is on : shoot (in continuous mode)

I tried with " is_key k "remote" " but the information disapear quickly ...
I found also "get_usb_power", but it's said that the information is disponible when usb power go down and give the duration of the hight period

Thanks for your help
Pat

Re: USB trigger
« Reply #1 on: 17 / August / 2009, 16:31:22 »
Could you post the script you are using ?


David

Re: USB trigger
« Reply #2 on: 17 / August / 2009, 16:50:31 »
Hello David

It'not a clean script !
I have added instructions to write in a file log some informations to try to understand how it really works ...
I have also translated some comments from french to english ... may be not very clear

@title test7

print_screen 0
print_screen 1

:loop
print "start"
do
is_key k "remote"
print "wait usb"
until k=1
release "shoot_half"
press "shoot_half"
t=get_tick_count
do
p=get_shooting
until p=1
u=get_tick_count
u=u-t
print "time for exposure and focus ", u
print "shoot_full"
press "shoot_full"
t=get_tick_count
do
is_key k "remote"
until k=0
u=get_tick_count
u=u-t
print "duration USB on ", u
release "shoot_full"
release "shoot_half"
print "end of burst"
goto "loop"
end

In this conditions the "duration USB on" is often between 500 and 2000 while the power on the USB stay on
May be somme thing wrong is easy to see for you

Thanks
Pat

 

Related Topics