Several Canon EOS cameras allow software setting of the exposure mode dial. This is supported by libgphoto2 via the autoexposuremodedial 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 in camera_init and disabling it in camera_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:
b83256ce836c1574ca35356a1a36c3056017cefb adds the PTP_OC_CANON_SetModeDialDisable opcode in ptp.h and ptp.c
ca241537c1b5dc0ad0a67e66f9d942649683243e adds the enabling/disabling to camera_init and camera_exit for supported cameras
26f4e49d6fb91aea598a511d7915159bf6e80411 adds disablemodedial command to camera actions for supported cameras
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 theSetModeDialDisable
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