-- dummy library for PCfunction sleep(n) x=nendfunction print_screen(n) x=nendfunction get_tick_count(s) return 100endfunction press(s) x=nendfunction shoot(s) x=nendfunction shot_histo_enable(s) x=nendfunction get_histo_range(n1,n2) return 100endfunction set_tv96_direct(n) x=nendfunction set_bv96(n) x=nendfunction set_sv96(n) x=nendfunction get_bv96() return 0endfunction get_av96() return 0endfunction press(n) x=nendfunction release(n) x=nendfunction get_day_seconds() return 80000endfunction shutdown()end a=0 b=0 c=0 d=0 e=0 f=0 g=0 h=0 i=0 j=0 k=0 l=0 m=0 n=0 o=0 p=0 q=0 r=0 s=0 t=0 v=0 w=0 x=0 y=0 z=0
Actually, it's not luminosity, there are a few frames that are slightly out of focus, even if I said "manual focus to infinity" (and the script set focus too) . ... GR!!! You can see the difference in the strong light at the bottom left (more faded in frame 783) and in the strong star (actually, Jupiter) that being slightly out of focus appears larger...It seems this camera isn't able to keep an exact focus...
Oh and does lua look for libs from anywhere but chdk/scripts? I don't want libraries there causing clutter.
Hmmm now that you said this... only about three of the 300 images from last night two are in focus (inf), all others are badly out of focus.
Quote from: fudgey on 21 / August / 2008, 00:35:18Oh and does lua look for libs from anywhere but chdk/scripts? I don't want libraries there causing clutter.I think Lua looks for libs also from chdk/lualib...
LibrariesLibraries are standard LUA scripts placed either in CHDK\SCRIPTS or CHDK\LUALIB, called within a script withCode: [Select]require "libname"where libname is the filename of the library file without '.lua' suffix.This means one can create a library of functions and recycle this lib in scripts with a call to require "libname".Library files were first searched from CHDK/SCRIPTS, and then if not found, from CHDK/LUALIB; if a file with the required name is available in both folders, the one from the first folder (CHDK\SCRIPTS) is used.
require "libname"
Actually one other thing I noticed but didn't recheck... juciphox defaults to "save script params" = Off (Why?...this is different from trunk behavior). Well I checked this option and then fiddled with script parameters and turned off the camera. I didn't run the script. Then after booting the camera, my settings were reset to defaults. Only after setting the parameters for the second time they were saved.
actually the ability to save the params never was in trunk!? this feature was added in juciphox by cyril42e if i'm not mistaken. I then recently added the switch (it was always enabled before) and set it to default off, as people were having problems with it.