Hi,
I think there is a difference between wiki-PropertyCases description for "focus mode" and CHDK-Propcase definition.
PROPCASE_FOCUS_MODE should better named PROPCASE_MANUAL_FOCUS.
So I prepared for rename in PROPCASE_MANUAL_FOCUS and also changed lua/ubasic function in get_manual_focus.
All changes based on trunk 875 (trunk875_part1.diff). Successful tested on my A590 and compilertest for all cam's with CHDK-shell.
I have another diff for new propcases and lua/ubasic functions in this context.
Propset index tested by CHDKLover (A610) for Propset1, Mita (G11) for Propset3 and myself (A590) for Propset2.
- add PROPCASE_FOCUS_MODE equal wiki -> PropertyCase -> focus mode
- add PROPCASE_FOCUS_STATE
lua and ubasic
- add function get_focus_mode
0:NORMAL; 1:MACRO
NOT ON PROPSET3! (tested by Miata from german forum -
here)
3:INFINITY; 4:MANUAL; 5:SUPER_MACRO
- add function get_focus_state
>0 focus ok
=0 focus fail
<0 manual focus
- add function get_focus_ok
if PROPCASE_FOCUS_STATE!=0 and PROPCASE_SHOOTING=1 then OK
All changes together at trunk875_FOCUS_MODE.diff and additional scripts for test.
rudi