KAP & UAV Exposure Control Intervalometer Script - page 101 - Completed and Working Scripts - CHDK Forum  

KAP & UAV Exposure Control Intervalometer Script

  • 1062 Replies
  • 215870 Views
*

Offline reyalp

  • ******
  • 11998
Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1000 on: 06 / December / 2018, 17:32:20 »
Advertisements
So the value returned by get_focus( ) only updates after a half_press unless you are using continuous AF mode, and in that case it updates continuously ?
AFAIK:
1) get_focus returns the current focus distance
2) Whether the Canon firmware changes the focus distance outside of half press depends on Canon settings. In typical standard AF, it only refocuses on half press.
Don't forget what the H stands for.

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1001 on: 28 / December / 2018, 20:12:10 »
I have a PowerShot A3000IS camera and installed the latest CHDK builds1.4.1 using the STICK utility; which automatically configures the SD card with two partitions (a small FAT16 and a larger FAT32) since my camera was released before 2011.

I downloaded and copied the kap_uav.lua script into the \CHDK\SCRIPTS folder as described here.  After that, I went to the CHDK Miscellaneous menu and enable Lua Native Calls.  However, I still get an error loading module '/gen/cnf_core' when I try to run/activate the kap_uav.lua script (see attached picture).

Has anyone resolved this issue?  Is the kap_uav.lua script compatible with cameras released before 2011; which usually are configured with two partitions?

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1002 on: 28 / December / 2018, 20:28:10 »
I have a PowerShot A3000IS camera and installed the latest CHDK builds 1.4.1 using the STICK utility; which automatically configures the SD card with two partitions (a small FAT16 and a larger FAT32) since my camera was released before 2011.
So far .. so good.

Quote
I downloaded and copied the kap_uav.lua script into the \CHDK\SCRIPTS folder as described here
The script needs to be stored in the /CHDK/SCRIPTS of the larger FAT32 partition - did you do that?  I'm assuming so as if you somehow managed to boot and run from the smaller partition the script would not be there. 

Quote
After that, I went to the CHDK Miscellaneous menu and enable Lua Native Calls.  However, I still get an error loading module '/gen/cnf_core' when I try to run/activate the kap_uav.lua script (see attached picture).
But if you did somehow manage to boot and run from the smaller partition without a switch to the larger partition then the /gen/cnf_core file would make sense.

Quote
Has anyone resolved this issue?  Is the kap_uav.lua script compatible with cameras released before 2011; which usually are configured with two partitions?
FWIW, this is not an issue with the script itself.  The script has been downloaded over 4500 times and used on a lot of Powershots - including several of mine released prior to 2011 with dual partition cards.

It looks like you've somehow ended up with an SD card missing critical files on the large partition.  Either that or an SD card that boots from the small partition and fails to switch to the larger partition. 

Before I speculate further, I'll wait for @reyalp to point out the obvious thing we are missing here  8)
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 11998
Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1003 on: 28 / December / 2018, 20:40:57 »
Before I speculate further, I'll wait for @reyalp to point out the obvious thing we are missing here  8)
Nothing obvious to me.
I'd suggest checking in the CHDK file browser:
1) Does CHDK/LUALIB/GEN/cnf_core.lua exist?
2) What is the displayed free space at the bottom of the file browser, is it a few MB (meaning you are seeing the "small" partition", or roughly size of the card (the large partition)?

If the file is present and the large partition is in use, I'd suggest checking "Miscellaneous->Show Memory Info" in the CHDK menu and posting the value here. Low free RAM could prevent the cnf_core module from being loaded.

If the file browser is showing the small partition, then something went wrong in the card setup, or multi-partition support is broken in the A3000 port (less likely, IMO)
Don't forget what the H stands for.


Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1004 on: 28 / December / 2018, 20:47:01 »
Yes, the CHDK/LUALIB/GEN/cnf_core.lua exist in the large partition (see attached pics).
« Last Edit: 28 / December / 2018, 20:50:46 by cagiva »

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1005 on: 28 / December / 2018, 20:53:19 »
Here the 3rd screenshot since I was not allowed to add more than 2 in the previous post.

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1006 on: 28 / December / 2018, 21:00:06 »
Thanks for those screenshots.  Helps to know you SD card file structure seems to be setup correctly.

So the next step is to make sure the SD card is booting correctly. @reyalp's suggestion is a good one :

Quote
What is the displayed free space at the bottom of the file browser, is it a few MB (meaning you are seeing the "small" partition", or roughly size of the card (the large partition)?

He means to open the CHDK File Browser on your camera that CHDK provides when CHDK is running.  Please report the free space it shows at the bottom.
« Last Edit: 28 / December / 2018, 21:02:16 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1007 on: 28 / December / 2018, 21:08:16 »
File Browser reports 7.49G (screenshot attached).  BTW, thank you both for such quick response.


Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1008 on: 28 / December / 2018, 21:11:46 »
File Browser reports 7.49G (screenshot attached).  BTW, thank you both for such quick response.
Nice.   Can you also find the /gen/cnf_core file using the CHDK file browser and screenshot it?

@reyalp Mac file naming error? Doesn't look like it but I'm out of ideas.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 11998
Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #1009 on: 28 / December / 2018, 21:18:53 »
@reyalp Mac file naming error? Doesn't look like it but I'm out of ideas.
Don't think so, since CNF_CORE would have been installed by stick along with all the others.

I'd lean toward free RAM. I was thinking 300 KB should be OK, but that's *without* the lua module loaded, which means very little left when it is (lua.flt alone is 128K, and each open file gets a pretty big buffer.

This port doesn't have exmem or ARAM enabled. I'll post an ARAM enabled test build in a bit.

@cagiva which canon firmware does your camera have?
« Last Edit: 28 / December / 2018, 21:20:36 by reyalp »
Don't forget what the H stands for.

 

Related Topics