2 USB control is really working great, but the problem is the time, when I trigger it, it took 6 second to be ready for another trigger, before that if you trigger it, it just been ignored. How can I improve it ? Because if I put intervalometer camera can the picture in 3 second fastest.
The USB control mode was setup to start/stop intervalometer shooting when the USB power = 5V ( i.e. On). It was really not designed for single shot shooting via USB pulses. Obviously it could be changed to do that if necessary if you can't leave the USB on when you want the UAV to be shooting. The nice thing about the current setup is that it retracts the lens when USB power is absent. This slows down the cycle time but is a really nice thing to have prior to your UAV rejoining the ground.
[/quote]
Hi Waterwingz, can you include a new feature into your script, let Gentled CHDK2 USB cable PWM signal trigger the camera to make a shoot? for that people can use control board to control shooting by fly distance. also control many shooting parameter during the fly.
here is the simple sample for that but in ubasic. I can help you make test.
@title gentled chdk2 script - Version 2
rem author Dave Mitchell - dave@zenoshrdlu.com
rem this script does nothing except display the state of the two transmitter joysticks that
rem correspond to the two receiver servo slots connected to the Gentled CHDK2
rem it's designed to let you test that your Gentled CHDK2 is working properly
rem
rem you can modify this script by putting whatever camera actions you like in place of the "print" statements
while 1
do
a = get_usb_power
until a>0
if a < 5 then gosub "ch1up"
if a > 4 and a < 8 then gosub "ch1mid"
if a > 7 and a < 11 then gosub "ch1down"
if a > 10 and a < 14 then gosub "ch2up"
if a > 13 and a < 17 then gosub "ch2mid"
if a > 16 and a < 20 then gosub "ch2down"
if a > 19 then print "error"
wend
end
:ch1up
print "channel 1 up"
return
:ch1mid
print "channel 1 middle"
return
:ch1down
print "channel 1 down"
return
:ch2up
print "channel 2 up"
return
:ch2mid
print "channel 2 middle"
return
:ch2down
print "channel 2 down"
return