guffster
eduperez
I did the following test first (no hack involved here):
Set the camera to M mode, aperture to 1/1.8 and speed to 1/60; moved to Av and set aperture to 2.2; changed to Tv and set speed to 1/400. Now I can jump around these modes, and the camera will recall the correct aperture and speed that I had set for each mode. I also saved these settings as three presets.
Then I made a small modification to our code, so the when a preset is loaded from the card, only the AE value is read and applied, no other parameter from the preset is used. Now I set the camera to A-DEP mode and read those presets; guess what happens? When I change the AE mode, the camera also recalls the other parameters!
This means we could do the following:
[list]
[li]Presets can only be read while in A-DEP mode.[/li]
[li]When a preset is read, we write to the card the AE mode corresponding to such preset.[/li]
[li]When the camera boots, we check the current AE mode: if we are in A-DEP, we load and apply the last AE mode set by a preset; the camera will then recall the other parameters.[/li]
[/list]
I believe the nightly build is working as you suspected it would. Nice.
Nice find - this certainly makes coding a bit easier I would assume. 😁
Now for more implementation of Presets and A-DEP:
I did notice a possible issue and rightly so - Let's say you load Preset 5, and then watch your excellent work by setting the mode dial to A-DEP, let the camera auto power off, then half-press the shutter release button to bring it back alive and see all of your Preset 5 settings come back to life. All is working and good at this point.
Now move the mode dial to Av (or any other setting), possibly change ISO from 100 to 200, set metering to Evaluative, and snap a few more shots. Now move the mode dial back to A-DEP and take note that the camera AE mode is now the original A-DEP, take a shot or two to see how A-DEP works. Now let the camera auto power off, half-press the shutter release button to come back alive - we are back at Preset #5 again...
Need to work through the logical design of how this should really work, now that we have learned that the restoring of settings by the camera is now the easy part... 😎