Hi,
in order to accomplish my mission to finally have universal scripts (no need to distinguish between digic II and digic III and model this and model that) (see
http://chdk.setepontos.com/index.php/topic,978.msg8339.html#msg8339 )
i want to implement a ubasic command like the following:
get_max_zoom_stepsYou may ask - what the fudge do you need this for?
well, obviously for scripts that use zoom. My a620 has a total of 8 zoomsteps (or 9, if you include the "no zoom setting"), whereas the s3is has a total of 128 (129) steps. i have to maintain two different scripts for the different cameras, which sucks as i want to only have scripts that can be run on all cameras without having to follow "guidelines and rules".
so with get_max_zoom_steps you can make loops like
while i<>get_max_zoom_steps
zoom = zoom + 1;
i = i+1;
wend
- this should then run on all cameras without the need of modifying first. my initial tests with my testbuild show no significant change in execution of scripts, so - the more commands the better (for now).
Now here is what i need you for:I need the zoom steps for each camera model. maybe it is written in the dumped firmwares somewhere, that would be great as it would allow a "bulk reading" of those values. if not, i need each camera owner to supply those values. maybe there even is a generic way of getting these values, like in "s series always has 128 steps, a series always 8 steps, ixus always x steps". don't really know.
if these values have been gathered, they then can be added to the /include/camera.h file and thus be parsed via ubasic (well, lua as well).
also, maybe it is useful to add something like "get_cam_has_nd", which would result in something like
0 - cam has no ND filter, it has normal aperture instead
1 - cam has ND filter
2 - cam has ND filter AND normal aperture (i think the G series have this, right)?
what do you think? need more commands in ubasic?
(opened this new thread as i didnt want to clutter my original thread with more information, as it already is a lot cluttered).
regards, PhoX
edit: maybe we not only need the steps, but also the zoom range itself (like 4x on a620, so when you have 8 steps - each step is half a normal "zoom step").