First results on the a3400, v9 + reyalp's aflock-2 patch + enabled CAM_SD_OVER_IN_AFL:The new test script succeeds both with(!) and without AF lock. Regular SD override selected in the menu still crashes the camera when in AF lock (as expected).
A few other items (most we discussed in IRC, putting here so the don't get lost)- set_MF should fail if not in rec mode, without calling the underlying canon function.
- set_focus could (should?) return a status value that tells whether focus override is expected to work with the current settings.
- script set_focus still has some weird logic with shooting_get_common_focus_mode, mf, set_now and set later. In particular the current checks make it use set_now only if the camera has real Canon MF, cameras without Canon MF will use the non-MF codepath even if *MFOn eventprocs work. This doesn't need to be addressed for the first patch.- Related to the previous, and srsa's suggestion earlier in the thread, the attached patch makes set_focus use set_now if aflock is on. This works on all my cameras. The patch is intended to go on top of waterwingz last patch (it needs the propcase set to know aflock is on). This may address cameras that had no working method. It's also nice because you can see the effect of focus changes right away without shooting.
Try the "improved" test script please? According to the new platform_camera.h for the A3400, the camera should only allow a set_focus() when AFL & MF modes are disabled.
I have added #define CAM_SD_OVER_IN_AFL 1, thus my results.
Quote from: reyalp on 01 / March / 2014, 23:05:02A few other items (most we discussed in IRC, putting here so the don't get lost)- set_MF should fail if not in rec mode, without calling the underlying canon function.Should this apply to set_aflock() too ?And maybe this should also be a condition in shooting_can_focus()
We could just use the result of a call in luaCB_set_focus() (and the uBASIC equivalent) to shooting_can_focus() as the return value ?
Quote from: srsa_4c on 02 / March / 2014, 13:11:06I have added #define CAM_SD_OVER_IN_AFL 1, thus my results.Missed that - sorry. It makes sense now. Did you do that for a specific reason or just to test the changes?
The a3400 still doesn't like SD override in MF mode (PT_MFOn).
I assume the new #defines prevented a crash?
Started by kwf General Discussion and Assistance
Started by dzsemx Feature Requests
Started by kmboise Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by Sdack « 1 2 3 » General Discussion and Assistance
Started by pigeonhill « 1 2 » General Help and Assistance on using CHDK stable releases