Untested patch adds DoAELock & UnlockAE wrappers and set_aelock function for Lua & uBasic.
Note: I had to add NULL_SUB entries for DoAELock and UnlockAE for many older VxWorks cameras so it will not work on those.
Wow - that was quick. Nice to be able to update the sigfinder rather than hand edit all those files!
Works well on my standard cameras - the sx50 is out "birding" again so I'll check it later.
Updated test script attached - I added set_aelock() and commented out the related event proc calls. There's a user @param to let you selectively enable the function for testing purposes. I'll remove that later when the script goes into general release.
Script still needs a little work - initial values for Tv, Sv, Av from get_
xv96() are not the values the video mode uses so you have to adjust the controls to sync. Maybe I'll just default the initial values via a manual overrided to 1/100, f2.8 and ISO100 so that everything starts sync'd. Could make the values @params I guess.
Also need to add a @param value for Maximum ISO - let users with cams like the SX50 that crash at ISO3200 lock that out in their script.
Other than that, I'm pretty happy with how the script works now. Thanks for turning set_aelock() around so quickly!
Note: I had to add NULL_SUB entries for DoAELock and UnlockAE for many older VxWorks cameras so it will not work on those.
So set_aelock(), like set_aflock(), does not return status. Is it worth adding something so that cameras that point to a NULLSUB return 0 and everything else returns 1 ?
Edit : attachment deleted - see follow post later in this thread for newer version of the script