Strikes me that the solution may lie with a change of photographic method rather than CHDK cleverness. ...
vwalton - are you using the right version of fudgey's script? One is for a Digic II camera, the other is for Digic III. What model is your camera? I'll try to test them during lunch today.
It's an S2 and I used the Digic II script. (I tried the Digic III too just to see what would happen - same result).
Any ideas about the unk stmt error? I don't know basic but I have a general idea of programming concepts and I didn't see anything grossly wrong or misspelled.
fudgey - I'm thinking that get_focus could make a great special build of your MD script. I've been wanting to use it to try to capture some birds in a park, but the problem is that movement in the distance would set it off. Adding a get_focus test would take care of that. This is on my todo list now
Hmm... is ubasic case sensitive? I never tried and I'm too lazy to check. Change the first line "@Title FocusFilter" to "@title FocusFilter".
:include if A>a+c or if A<a-c then goto "restart" gosub "shoot"goto "start"
@title FocusFilterrem Written by A_Str8@param a Distance x 5 Inches@default a 26@param b Include=1 Exclude=2@default b 1@param c Range x 5 Inches@default c 2@param y 1=Find Distance@default y=0print "Starting"if b<>2 then b=1if c<0 then c=0if a<-1 then a=-1if a=0 then a=1c=c*127if y=1 then goto "check"if a>516 then a=-1if a=-1 then a=65535if a=65535 then goto "start"a=a*127:start N=a-c if N<0 then N=0 X=a+c press "shoot_half" do get_prop 206 P until P=1 get_focus A if b=1 then goto "include" else goto "exclude"goto "start":shoot click "shoot_full" do get_prop 206 P until P<>1return:include if A>X or A<N then goto "restart" gosub "shoot"goto "start":exclude if A>=N and A<=X then goto "restart" gosub "shoot"goto start:restart release "shoot_half" sleep 250goto "start":check print "Aim at reference" sleep 3000 press "shoot_half" do get_prop 206 P until P=1 get_focus a release "shoot_half" B=a/127 print B, "x 5 inches" sleep 3000goto "start"
Just tried fudgey's script and all I get is ***STARTED*** after I push the shutter. I put it into <alt> mode, press and release the shutter while pointed at infinity, and get ***STARTED***. Then I move until I'm pointed at something closer and it never focuses. I've tried in P and AUTO, I've tried pressing and releasing the shutter, and just pressing and holding. I think I'm missing something, or the script doesn't work.Keep trying guys it looks like we're getting close!!
I tried the new script and got: uBasic:30 unk stmtSo I figured, that must be the N on line 30 - it doesn't like upper case at all. I changed the whole script into lower case and ran it again. Now I get "starting" in the viewfinder and no uBasic errors, but I can't get it to fire. I left it at the default settings 26 for distance and 2 for range, and it just sits there for about 2 minutes then shuts off. It does focus during that 2 minutes so something is happening, but not what we want.
The only thing I can think of is that your build is ancient enough not to support capitalized variables in ubasic. ...
Started by bilinsky
Started by aavzqz
Started by trismarck
Started by barianet
Started by halfpipe
« 1 2 3 4 »
Hotwire! Hardware Mods, Accessories and Insights