WOOOHOOO!!! Dave (Zeno), you rock!
It works!
It took me a few minutes to figure out that the a720 firmware linked on your page is not the new version that you posted on the 9th. I had to browse around your zip files to find it here:
Index of /zips/At any rate, I got it loaded and lo and behold, it does what it's supposed to, for the most part. Mode switching between auto and movie works just fine, as does the "shoot" command. get_usb_power works like I expected it to. The only thing that doesn't work properly is the
press "shoot_full" command. This doesn't seem to function, as it does not take a picture when called. I haven't tried any of the other press commands but will be adding some to the script tonight and will let you know. It also took me a little debugging to realize that get_usb_power returns in increments of 1/100 second, compared to the Arduino's 1/1000 second timer. Once I figured this out, I just removed an extra zero from my ubasic script and everything worked nicely. Here's what I have so far:
@title Super Controller
do
a=0
do
a = get_usb_power
until a>0
if a>0 and a<50 then
print "Received request for still"
press "dm_auto"
sleep 1000
shoot
sleep 1000
release "dm_auto"
sleep 1000
endif
if a>200 then
print "Received request for movie"
press "dm_movie"
sleep 1000
press "shoot_full"
sleep 300
release "shoot_full"
sleep 5000
press "shoot_full"
sleep 1000
release "shoot_full"
sleep 1000
release "dm_movie"
sleep 1500
endif
until is_key "set"
end
Dave, thanks again for all of your hard work. I will get back to you when I've tested the rest. I won't be needing the
press "shoot_full" for my project, but it might be nice to figure out why that fails.
Chris