New CHDK Scripts and Methods!!!

New CHDK Scripts and Methods!!!

Hello Flight Riot!

CHDK: Canon Hack Development Kit

CHDK is useful for UAV mapping because it allows options for control of canon point and shoot cameras that you would not otherwise have. I use the Canon S100 and Canon SX260 primarily for mapping though I have used SX230 and others in the past. Canons with CHDK as a mapping camera configuration offer a great way to capture remotely sensed imagery from your UAV, fixed wing or multi-rotor.

There are essentially two general camera trigger approaches.

1) triggering by location or distance traveled. With APM or PixHawk there are options to trigger a camera based on distance (CAM_TRIGG_DIST) or at specific WPs by using “Internals” in the Mission Planner Survey Tool. Each requires a physical USB trigger ( to allow the autopilot to tell the camera when to fire the shutter.

2) another usefull approach is a time based intervalometer in whereby a chdk script is used to tell the camera to take pictures every 2 seconds or whatever time interval makes sense for the mission. In the Mission Planner Survey Tool you can input the typical speed of your aircraft and then look at the estimated time between photos and use that number as your mission interval.

Below are 4 different methods you can use for mapping depending on your needs. Enjoy!

Trigger without a Script (CAM_TRIGG_DIST/WP): The initial Flight Riot script used the CAM_TRIGG_DIST method, was very simple and fast but did not work consistently on different cameras and different firmware versions. I recently discovered that you can use CHDK without any script in conjunction with CAM_TRIGG_DIST and achieve the same results. After installing CHDK, simply enable remote, set switch type to “one push”, and set control mode to “quick ” or “normal”.

No need to load any script. When you want to trigger the camera via usb remote trigger, simply power camera on, press the shutter button to deploy the lens, and you’re all done. Don’t turn chdk on by pressing playback button. Leave CHDK off! IMG_20141111_102305


Another piece to this that can sometimes be important, particularly on certain fixed wing UAVs is having the camera shutdown prior to landing so that the lens retracts and is not damaged.

Ok so I’m going to share 3 scripts today, 2 of which I created and one that was created by I think quite a few people in the Kite Aerial Photography community and is really quite sophisticated.

New FR Super Simple Script (CAM_TRIGG_DIST/WP): an updated version of the the original FR super simple script for anyone that the trigger method above does not work. It simply allows the autopilot to trigger the camera using CAM_TRIGG_DIST or WP. You can also set it up to trigger using a Tx switch if you want to manually control when pictures are taken:


RTM Script with shutdown (CAM_TRIGG_DIST/WP):The second script is my latest and it functions similarly to the super simple script but it shuts the camera down 30 seconds (adjustable in chdk menu) after the last mapping mission WP. It also uses CAM_TRIGG_DIST to get jsut the right amount of images per mission:


KAP Script with shutdown (Time based intervalometer):The final one was developed primarilty by the Kite Aerial Photography (KAP) community, is appropriately refered to as the KAP script and is quite robust. It is detailed and can be downloaded here:

I will also start a forum on CHDK so we can collectively figure out the best ways of conducting UAV mapping with Canon cameras.



  1. Ryan Moreau

    Quick question on the RTM script. Is the shutdown timer found in the CHDK menus? or is it in the script parameter menu? the only adjustable parameter I’m seeing for this script is labeled ‘Interval (seconds).’

    Thanks for all that you’ve done!!

  2. Rafael Tab

    I have a question about de popular canon s100 and Sx260 that they only can take 200 or 230 pictures for his Battery Average Life.

    They are very usefully in fixed wind that can fly over 40 min or more. They extend the battery life of the camera with the CHDK or how ?

    How I can extend the battery life of the camera for take advantage of all the flight time?

    • geobduffy

      I have conducted missions with more than 600 mages captured with both the Canon sx260 and the Canon s100.
      The key is turning off all features that drain the battery.
      one setting that makes a large difference is turning off the image review.
      You can also buy larger capacity lithium ion batteries online. I hope that helps

  3. Michael D Sharp

    does the RTM7 script trigrer the camera + shut the camera down .. ?
    I would like to know how to just shut off the camera.. Pixhawk trigers the camera on my wing.

Submit a Comment

Pin It on Pinterest

Let's stay in touch

Would you like to sign up to receive an occassional newsletter from us.  We'd love to let you know about new and wonderful things happening on the site.  Your details are never shared or sold and we hate spam as much as you do. 

You have Successfully Subscribed!