CHDK Scripts & Parameters problem

Hi, today i went into a field test, and i went with a canonSX260 hacked with the CHDK script from conservations drones, and i encounter a couple o problems. First of all, my setup regarding the script parameter where the following:

-Interval (sec)= 2s
-Time active=3min
-Zoom step =30
Start delay=30s.

That being said, the problems that i had where:

1.- When i hit the trigger button to start the script, the camera zoom in and then freeze and turn off. Then if i, before running the script, put some zoom on the camera that is somehow near the desireble zoom position of the script, the script start running (the intervalometer start taken shoots) but not as expected (see next point).


2.- When i manage to start the script, there is a dialogue box that gives you information about the status of the script (shoots taken, shoots left, time active and time remaining). And when, in that dialogue box, the active time reaches zero, the camera stay on, and it should be turned off by the script, so i dont know why the camera script soes this. Furthermore at this moment, when the active time reaches zero, the photos taken are not what they should be, i mean there are some photos still untaken.
i fortgot to say that the time active start to go on negative, i mean that it count like this: 2...,1...,0...,-1...,-2...

So i would really apretiate your help because this is a real puzzle for me, coz i dont know about programming...
I´ll upload the script that i loaded into the camera

 

conservation drones.bas

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Oh, one more thing....I was correct about the S series of zoom steps and assumed it was the same for the SX series. It's not. For the SX series of cameras the CHDK Wiki says the maximum number of zoom steps is 23 (j should be between 0 and 22). Your default zoom step of 30 exceeds this. That could be part of the problem. Try changing the default value to something between 0 and 22 and see if that works.

  • I tried the file in an A2200. The script would run normally, do the "Starting in 5,4,3,2,1" countdown, do the zoom, then the lcd goes black and it locks up instead of executing "shoot".

    But,....If I rem out the "set_zoom j" (the first step in the do loop) it seems to work OK then, other than not doing the zoom you want. The syntax of the "set_zoom j" looks to be correct, and per CHDK the allowable range for an S series is 0 to 128 (The range for an A series is lower and I corrected for that), so that all looks fine.

    I'm far from expert in CHDK but I'm not seeing what the problem is. I'd be interested if someone who knows this stuff better comes up with an answer.

This reply was deleted.

Activity

DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
RT @f1tenth: Sliding (autonomously) into the weekend like ... 🤖😎 #f1tenth #robots #AutonomousVehicles @OpenRoboticsOrg @NVIDIAEmbedded @Aut…
Apr 25
DIY Robocars via Twitter
RT @chr1sa: One of the problems with autonomous car racing is that watching software drive is not a very exciting spectator sport. To help…
Apr 25
DIY Robocars via Twitter
RT @SmallpixelCar: Replaced AGX Xavier with @NVIDIAEmbedded Jetson Xavier NX. Now both cars look fast and clean https://t.co/jlcoY2EjZf
Apr 25
DIY Robocars via Twitter
RT @chr1sa: Yesterday we had a record number of competitors (36) in our monthly @DIYRobocars virtual autonomous car race. We kept it going…
Apr 25
DIY Robocars via Twitter
Apr 16
DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
Apr 11
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
Apr 11
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Apr 7
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Apr 7
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
@GrantEMoe @circuitlaunch Update: we're doing it on Sunday (4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
RT @chr1sa: Maybe we should have a mini @DIYRobocars race in our lower school's playground https://t.co/xLFeua1R6X
Mar 29
More…