Hi,
Finally I was able to check latest svn version, after a very busy month.
1) Using video zoom through script: now focus is disabled after zooming. Previously focus was adjusted after every zoom.
I noticed that enabling manual focus (using standard camera button) before using chdk script, enable focus after each zooming.
I made a quick search through code and find an error in generic/shooting.c
void shooting_set_focus(int v, short is_now) {
if((is_now) && (shooting_get_focus_mode())) { <--- Wrong. shooting_get_focus_mode() is 0 for normal, 1 for MF.
if ((!conf.dof_subj_dist_as_near_limit) && (v>0)) lens_set_focus_pos(v);
else {
int near=shooting_get_near_limit_from_subj_dist(v);
if (near>0) lens_set_focus_pos(near);
}
}
else photo_param_put_off.subj_dist=v;
}
Changed if((is_now) && (shooting_get_focus_mode())) to if((is_now) && (!shooting_get_focus_mode()))
and now I have focus after every zoom.
2) In include/platform.h
#define PROPCASE_MF_ACTIVE 115 is wrong
#define PROPCASE_MF_ACTIVE 133 is correct
I check that propcase 115 is always 0 before shooting in all mode and 1 after half shoot in all mode, but not in movie mode where is always 0.
The value is not modified using MF. I think that it is something as READY TO SHOOT
Propcase 133 is 0 for normal and 1 in MF in all mode included movie mode.
If You want to check the exact focus mode, You must use the propcase 6
It's Values are: 0 Normal Mode, 1 Macro Mode, 4 MF Mode
Another couple of Props are:
props 102: Drive Mode 0 Normal, 1 Continuous Mode, 3 Self Timer Mode
props 122: Flash On 1, Flash Off 0. Check value after half shoot for valid response.
Ciao