Hi.
I managed to get everything up and running, i even wrote a small script for remote control that works fine
but i do face a strange problem so i need your help and advice.
During remote control after a random number of commands the camera shuts down like i removed the battery.
The lens stays out and i have to press the power on button of the camera to revive it.
Also the green led light of the camera sometimes stays on some times it goes off also.
Anyway this happens always when the usb switch is activated in order to give a command never in idle.
I suspect 3 things:
a) bad camera battery
The battery was fully charged prior to operation and the camera indicated 96% but maybe the battery
cannot supply the current needed
b) chdk bug
c) bad script
Also the command "get_zoom_steps x" is not recognized and i get an "uknown statement" (or command i don't remember) although this command is clearly described in the scripting manual.
Here is my script
@param z
@default z 16
while 1
do
a = get_usb_power
until a>0
if a <=5 then gosub "take_pic" else if a <=8 then gosub "zoom_in_a_bit" else if a <=11 then gosub "zoom_out_a_bit" else if a <=15 then gosub "zoom_out_full" else if a <=18 then gosub "zoom_in_full" else gosub "take_pic" endif
wend
end
:take_pic
shoot
return
:zoom_in_a_bit
print "zoom in"
if get_zoom <= 112 then set_zoom_rel z
return
:zoom_out_a_bit
print "zoom out"
if get_zoom >= 16 then set_zoom_rel -z
return
:zoom_out_full
print "Full zoom out"
set_zoom 0
return
:zoom_in_full
print "Full zoom in"
set_zoom 128
return
return
Chris