Support the SetModeDialDisable opcode for Canon cameras #991
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several Canon EOS cameras allow software setting of the exposure mode dial. This is supported by
libgphoto2
via theautoexposuremodedial
config.This works as expected wit for instance the EOS 1200D and the EOS 2000D.
In some Canon cameras, for instance the Canon EOS R50, you need to unlock this feature before it can be used.
The
SetModeDialDisable
opcode (0x9088
) has to be sent to the camera with parameter 0 to disable the mode dial and allow software setting of the exposure mode.The disabling is cancelled by sending the
SetModeDialDisable
command with parameter 1.This pull request will allow software setting of the exposure mode during a camera session by issuing the
SetModeDialDisable
as described above, by enabling software setting incamera_init
and disabling it incamera_exit
.It also adds a
disablemodedial
camera action config so that the feature can be enabled / disabled during a camera session.Being able to control the exposure mode via software is a valuable feature for many applications.
This pull request consists of 3 commits:
PTP_OC_CANON_SetModeDialDisable
opcode inptp.h
andptp.c
camera_init
andcamera_exit
for supported camerasdisablemodedial
command to camera actions for supported cameras