UAV camera script - Script Writing - CHDK Forum

UAV camera script

  • 11 Replies
  • 7852 Views
UAV camera script
« on: 18 / January / 2014, 16:47:30 »
Advertisements
Hey,
I'm writing a script for a canon S110 which is going to be attached to a UAV pointing to the ground and taking pictures continuously.
As I wrote, my camera model is S110 (FirmWare 102b) running CHDK version 1.2.0
My needs are as follows:
1. pictures need to be taken using remoteshoot() command in order to be immediately sent back to the user's PC - time of capture mast be somehow logged
2. a pre-shooting script that locks and sets all required properties
  • lock AF & set focus to infinity
  • lock ISO & set ISO value
  • lock shutter speed & set shutter speed value
  • lock aperture & set aperture value
  • turns the screen off
3. a post-shooting script that restores all properties

all highlighted issues are currently unresolved.
hoping it's not a drawback of my camera, I could definitely use some help :)

Thanks, Nadav

Re: UAV camera script
« Reply #1 on: 18 / January / 2014, 16:51:23 »
You might be able to borrow some ideas from here :  http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script  for everything but your first highlighted item.

More info on setting & locking focus here :  http://chdk.setepontos.com/index.php?topic=11078.0

And some info on AE lock here :  http://chdk.wikia.com/wiki/Script_commands#set_aelock

« Last Edit: 18 / January / 2014, 17:19:01 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: UAV camera script
« Reply #2 on: 20 / January / 2014, 05:04:33 »
Thanks WATERWINGZ !

Another question. is there a way of preserving the locking after the script ends?
I want to use 'remoteshoot' from my CHDK-PDP client and I want that the properties from the script will still be effective during the remote shooting.

Nadav

Re: UAV camera script
« Reply #3 on: 20 / January / 2014, 09:21:08 »
Another question. is there a way of preserving the locking after the script ends? I want to use 'remoteshoot' from my CHDK-PDP client and I want that the properties from the script will still be effective during the remote shooting.
If you use set_aflock(1) and set_aelock(1) then the values should stay locked after the script terminates. But I have not tested set_aelock(1) much so that's just my best guess.   Worst case, you might have to also set the desired override values in the CHDK override menu.

I'll take a look at it tonight.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: UAV camera script
« Reply #4 on: 20 / January / 2014, 10:38:09 »
Quote
Worst case, you might have to also set the desired override values in the CHDK override menu.

I'm kind of new to CHDK... What does "CHDK override menu" means?

Thank you very much for your help!

Re: UAV camera script
« Reply #5 on: 20 / January / 2014, 11:40:58 »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: UAV camera script
« Reply #6 on: 14 / March / 2014, 06:03:09 »
Hi Nadavofi.

Have you got your S110 to stay on infinite focus?

I can set the focus to INF using the CHDK overrides (ALT menu/Enhanced Photo Operations/Override Subj. Dist.), but it seems to still do some measurements = increased time before shooting.

If I use set_aflock(1) combined with the override, I get the focus determined when calling set_aflock.

Regards, Casper

Re: UAV camera script
« Reply #7 on: 14 / March / 2014, 07:56:02 »
I can set the focus to INF using the CHDK overrides (ALT menu/Enhanced Photo Operations/Override Subj. Dist.), but it seems to still do some measurements = increased time before shooting.
If I use set_aflock(1) combined with the override, I get the focus determined when calling set_aflock.
As mentioned here,  the behavior of CHDK when setting focus is a bit erratic and varies a lot from camera to camera.

The 1.3.0 development version of CHDK now has a new command - set_mf() - that will place almost all cameras into a manual focus mode where the focus point can be set and locked.  For those few cameras where that does not work,  the set_aflock() command will do pretty much the same thing.

Use of SD override from the CHDK menu is still under review.

Ported :   A1200    SD940   G10    Powershot N    G16


Re: UAV camera script
« Reply #8 on: 15 / March / 2014, 11:48:17 »
CHAU

I used the following instructions and it worked for me with the S110
call_event_proc('SS.Create');
call_event_proc('SS.MFOn');
set_focus(65000);

Hope it will do for you too.
Nadav

Re: UAV camera script
« Reply #9 on: 15 / March / 2014, 12:38:13 »
call_event_proc('SS.Create');
call_event_proc('SS.MFOn');
You will need to set Enable Lua Native Calls in the CHDK Miscellaneous menu if you want to use these functions.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics